local events = require('lib.samp.events')
events.onShowDialog = function(id, style, title, button1, button2, text)
--id dialog выводится визуально в чат
sampAddChatMessage("ID диалога: " .. id, 0xFFFFFF)
if id == 123 then
--Ответ на диалог с ид 123, 228 это пароль
sampSendDialogResponse(123, 1, nil, "228")
return false
end
end