Почему по факту диалог всеравно остается открытым? Просто визуально не видно, как закрыть?
sampCloseCurrentDialogWithButton не поможет
Lua:
if id == 25527 then
local index = 0
for line in text:gmatch('[^\r\n]+') do
if line:find("Вокзал") then
sampSendDialogResponse(25527, 1, index, -1)
return false
end
index = index + 1
end
end
sampCloseCurrentDialogWithButton не поможет