local newFrame = imgui.OnFrame(function() return window[0] end, function(player)
local sizeX, sizeY = getScreenResolution()
imgui.SetNextWindowPos(imgui.ImVec2(sizeX / 2, sizeY / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(300, 200), imgui.Cond.FirstUseEver)
imgui.PushStyleColor(imgui.Col.WindowBg, imgui.ImVec4(0, 1, 0, 1))
imgui.Begin("Window 1", window, imgui.WindowFlags.NoResize)
imgui.End()
imgui.PopStyleColor()
end)
local newFrame2 = imgui.OnFrame(function() return window2[0] end, function(player)
local sizeX, sizeY = getScreenResolution()
imgui.SetNextWindowPos(imgui.ImVec2(sizeX / 2, sizeY / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(300, 200), imgui.Cond.FirstUseEver)
imgui.PushStyleColor(imgui.Col.WindowBg, imgui.ImVec4(0, 0, 0, 1))
imgui.Begin("Window 2", window2, imgui.WindowFlags.NoResize)
imgui.End()
imgui.PopStyleColor()
end)