local imgui = require 'mimgui'
local fWindow, tWindow = imgui.new.bool(false), imgui.new.bool(false)
function main()
sampRegisterChatCommand('one', function() fWindow[0] = not fWindow[0] end)
sampRegisterChatCommand('two', function() tWindow[0] = not tWindow[0] end)
wait(-1)
end
local oneFrame = imgui.OnFrame(function() return fWindow[0] end, function(self)
imgui.Begin('frame one', fWindow)
imgui.Text('test')
imgui.End()
end)
local twoFrame = imgui.OnFrame(function() return tWindow[0] end, function(self)
imgui.Begin('frame two', tWindow)
imgui.Text('test')
imgui.End()
end)