local sampev = require('lib.samp.events')
function sampev.onShowDialog(id, style, title, button1, button2, text)
local ntext = text:gsub('{......}', '')
for line in ntext:gmatch("[^\r\n]+") do
if line:find('Должность: (.+)') then
local doljnost = line:match('Должность: (.+)')
sampAddChatMessage(doljnost, -1)
end
end
end