local imgui = require 'mimgui'
local renderWindow = imgui.new.bool(false)
imgui.OnFrame(function()
return renderWindow[0]
end, function()
imgui.Begin('Window', renderWindow)
imgui.End()
end)
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('menu', function()
renderWindow[0] = not renderWindow[0]
end)
wait(-1)
end