require "lib.moonloader"
function main()
if not isSampLoaded() then return end
while true do wait(0)
if isPlayerPlaying(PLAYER_HANDLE) and not sampIsChatInputActive() and not sampIsDialogActive() then
if isKeyJustPressed(81) then
sampSendChat("q")
end
end
end
end