require "lib.moonloader"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(3500) end
sampAddChatMessage("{008000}[МЗ Binder] {FFFFFF}by {008000}Petya", -1)
while true do -- бесконечный цикл
wait(0)
-- тут твой код (например если нажата клавиша Q то в чат напишет Q)
if isKeyJustPressed(VK_Q) and not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsScoreboardOpen() and not isSampfuncsConsoleActive() then
sampSendChat("q")
end
end
end