local sampev = require 'lib.samp.events'
local active = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('hl', function()
active = not active
sampSendChat('/report')
end)
end
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if active then
if title:find('{BFBBBA}{E88813}Репорт') then
sampSendDialogResponse(dialogId, 1, 1, 'Помогите')
return false
end
end
end