- Версия MoonLoader
- Другое
Когда вставляю функцию imgui.input при открытие окна крашит самп
Lua:
function imgui.OnDrawFrame()
if main_win.v then
local sw, sh = getScreenResolution()
imgui.SetNextWindowSize(imgui.ImVec2(850, 450), imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos(imgui.ImVec2(sw / 2, sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.Begin(" PravoHelper "..scr.version, main_win, imgui.WindowFlags.NoResize)
imgui.BeginChild(u8"Основное меню", true)
if ButtonMenu(u8"Главное меню", select_menu[1]) then select_menu = {true, false, false, false, false}; end
imgui.Spacing()
imgui.Spacing()
if ButtonMenu(u8"Настройки", select_menu[2]) then select_menu = {false, true, false, false, false} end
imgui.Spacing()
imgui.Spacing()
if ButtonMenu(u8"Биндер", select_menu[3]) then select_menu = {false, false, true, false, false} end
imgui.Spacing()
imgui.Spacing()
if ButtonMenu(u8"Собеседования", select_menu[4]) then select_menu = {false, false, false, true, false} end
imgui.Spacing()
imgui.Spacing()
if ButtonMenu(u8"Департамент", select_menu[5]) then select_menu = {false, false, false, false, true} end
imgui.Spacing()
imgui.Spacing()
imgui.EndChild();
if select_menu[1] then
imgui.SameLine()
imgui.BeginGroup()
imgui.InputText(u8"Ник", buffer, 255);
imgui.EndGroup()
end
if select_menu[2] then
imgui.SameLine()
imgui.BeginGroup()
imgui.Text(u8"Настройки");
imgui.EndGroup()
end
if select_menu[3] then
imgui.SameLine()
imgui.BeginGroup()
imgui.Text(u8"Биндер");
imgui.EndGroup()
end
if select_menu[4] then
imgui.SameLine()
imgui.BeginGroup()
imgui.Text(u8"Собеседования");
imgui.EndGroup()
end
if select_menu[5] then
imgui.SameLine()
imgui.BeginGroup()
imgui.Text(u8"Департамент");
imgui.EndGroup()
end
imgui.End()
end
end