- Версия MoonLoader
- Другое
Lua:
getLeaders = ""
function samp.onShowDialog(did, style, title, b1, b2, text)
if did == 0 then
print("onShowDialog called")
if text:find("Лидер семьи: {47EB2A}(%w+_%w+){FFFFFF}") then
local getleader = text:match("Лидер семьи: {47EB2A}(%w+_%w+){FFFFFF}")
getLeaders = getleader
end
end
end
ВОт мне нужно что бы getLeaders выводился текстом в mimgui. Я попробовал сделать так :
Lua:
if tabs == 1 then
imgui.Text(u8(getLeaders))