local ev = require("lib.samp.events")
function ev.onShowDialog(id, style, title, button1, button2, text)
if id == тут нужный ид then
sampCloseCurrentDialogWithButton(0)
return false
elseif id == тут нужный ид then
sampCloseCurrentDialogWithButton(1)...