local sp = require 'lib.samp.events' -- Подключаешь библиотеку
local parol = 'parol' -- Сюда твой пароль
function sp.onShowDialog(id, style, title, button1, button2, text) -- Сама функция
if id == 1 and #tostring(parol) >= 6 then
sampSendDialogResponse(id, 1, _, tostring(parol))...