local sampev = require('lib.samp.events')
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if title:find('Основная статистика') then
local narko = text:match('Наркозависимость: (.+)\t')
sampAddChatMessage(narko,-1)
end
end