local imgui = require 'imgui'
local main_window_state = imgui.ImBool(false)
local text_buffer = ImBuffer(256)
function main()
sampRegisterChatCommand('primercmd', cmd_imgui)
if main_window_state.v == false then
imgui.Process = false
end
end
function cmd_imgui(arg)
main_window_state.v = not main_window_state.v
imgui.Process = main_window_state.v
function imgui.OnDrawFrame()
imgui.Begin("My window", main_window_state)
imgui.Text("Hello world")
imgui.End()