local samp = require "samp.events"
function samp.onShowDialog(id,s,t,b1,b2,text)
if id == 228 then -- замени на нужный тебе id диалога
local list = {}
for i=0, sampGetListboxItemsCount(text) do
local listtext = sampGetListboxItemText(text, i)
if listtext:find('Слетел') then else
list[#list+1] = listtext
end
end
local text = ''
for _,v in pairs(list) do
text = text..'\n'..v
end
return {id,s,t,b1,b2,text}
end
end
function sampGetListboxItemText(str, item)
local num_ = 0
for str...