require 'lib.moonloader'
local vk = require 'vkeys'
local binds = {
{vk.VK_L, '/lock'},
{vk.VK_K, '/key'},
{vk.VK_P, '/phone'},
{vk.VK_1, '/usemed'},
{vk.VK_X, '/style'},
{vk.VK_9, '/mask'},
{vk.VK_0, '/balloon'},
{vk.VK_4, '/armour'},
{vk.VK_3, '/anim 3'},
}
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
for i = 1, #binds do
if wasKeyPressed(binds[i][1]) and not sampIsCursorActive() then sampSendChat(binds[i][2]) end
end
end
end