local state = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('afk', function()
state = not state
end)
wait(-1)
end
function onReceivePacket()
if state then return false end
end
function onSendPacket()
if state then return false end
end