local sampev = require('samp.events')
function sampev.onShowDialog(dialogId, style, title, butt1, butt2, text)
-- DEBUG INFORMATION DIALOG
local info = string.format('dialogId:%s, style:%s, title:%s, butt1:%s, butt2:%s, text:\n%s', dialogId, style, title, butt1, butt2, text)
print(info)
if dialogId == ИД_ДИАЛОГА and style == СТИЛЬ_ДИАЛОГА then
sendDialogResponse(dialogId, 1, -1, '') -- отправить ответ на диалог
-- sendDialogResponse(int id, int button, int list, string input)
return false
end
end