function main()
if not isSampLoaded() or not isSampfuncsLoaded()then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('jb', jb)
while true do
wait(0)
end
end
function jb(arg)
if #arg == 0 then
sampAddChatMessage('{00BFFF}Ошибка | {FFFFFF}Вы не указали текст который надо написать в репорт', 0x00BFFF)
else
lua_thread.create(function()
local report = (arg)
sampSendChat('/report')
wait(1)
sampSendDialogResponse(32, -1, -1, report)
wait(150)
sampCloseCurrentDialogWithButton(0)
end)
end
end