При запуске командой imgui крашит самп
Код:
function cmd_imgui(arg)
main_window_state.v = not main_window_state.v
imgui.Process = main_window_state.v
end
function cmd_check(arg)
end
function imgui.OnDrawFrame()
imgui.Begin(u8"Заголовок", main_window_state)
imgui.InputText(u8'Введите имя сюда', text_buffer_name)
x, y, z = getCharCoordinates(PLAYER_PED)
imgui.Text(u8("Позиция игрока: X:" .. math.floor(x) .. " | Y: " .. math.floor(y) .. " | Z: " .. math.floor(z)))
imgui.RadioButton("Radio 1", checked_radio, 1)
imgui.End()
end