require("lib.moonloader")
local imgui = require 'mimgui'
local checkboxone = new.bool()
local encoding = require 'encoding'
encoding.default = 'CP1251'
local u8 = encoding.UTF8
local new = imgui.new
local WinState = new.bool()
imgui.OnFrame(function() return WinState[0] end,
function(player)
imgui.SetNextWindowPos(imgui.ImVec2(500,500), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(245, 280), imgui.Cond.Always)
imgui.Begin(u8'Авто Альт', WinState, imgui.WindowFlags.NoResize)
imgui.Checkbox(u8'Чекбокс', checkboxon)
imgui.End()
end
)
function main()
sampRegisterChatCommand('delol', function() WinState[0] = not WinState[0] end)
wait(-1)
end