require "lib.moonloader"
local keys = require "vkeys"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
if not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsScoreboardOpen() and not isSampfuncsConsoleActive() then
if isKeyJustPressed(VK_3) then
lua_thread.create(function()
wait(100)
sampSendChat("/newsredak")
end)
end
end
end
end