local imgui = require 'imgui'
local main_window_state = imgui.ImBool(false)
function main()
repeat wait(0) until isSampAvailable()
imgui.Process = false
sampRegisterChatCommand("imgui", function()
main_window_state.v = not main_window_state.v
imgui.Process = main_window_state.v
end
while true do
wait(0)
imgui.Process = main_window_state.v
end
end
function imgui.OnDrawFrame()
if main_window_state.v then
imgui.Begin("Imgui Window", main_window_state)
imgui.Text("Это текст")
imgui.End()
end
end