require 'moonloader'
local samp = require 'samp.events'
local xz = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('idall', sendIdCommands)
end
function sendIdCommands()
xz = not xz
if xz then
lua_thread.create(function()
for i = 0, 1000 do
if not xz then break end
sampSendChat('/id ' .. tostring(i))
wait(200)
end
end)
end
end