Второе окно создаётся так же, как и первое, но если тебе нужно, чтобы оно пропадало при закрытии основного, то делай таким способом.
local mainWindow = imgui.ImBool()
local extraWindow = imgui.ImBool()
function main()
while true do wait(0)
if wasKeyPressed(VK_L) then mainWindow.v = not mainWindow.v end
if wasKeyPressed(VK_K) then extraWindow.v = not extraWindow.v end
end
end
function imgui.OnDrawFrame()
if mainWindow.v then
if imgui.Begin('Main Window', mainWindow) then
-- ITEMS
imgui.End()
end
if extraWindow.v then
if imgui.Begin('Extra Window', extraWindow) then
-- ITEMS
imgui.End()
end
end
end
end