require 'lib.moonloader'
local list = {
{key = VK_1, text = ''},
{key = VK_3, text = '/dr 3'},
{key = VK_2, text = '/anim 29'},
}
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
if not sampIsCursorActive() and not sampIsChatInputActive() and not sampIsDialogActive() then
for i = 1, #list do
if wasKeyPressed(list[i].key) and list[i].text ~= '' then
sampSendChat(list[i].text)
end
end
end
end
end