require ('lib.moonloader')
local vkeys = require ('vkeys')
local imgui = require('imgui')
local encoding = require ('encoding')
encoding.default = 'CP1251'
u8 = encoding.UTF8
local window = imgui.ImBool(false)
function main()
while not isSampAvailable() do wait(200) end
while true do
wait(0)
if isKeyJustPressed(VK_F3) then
window.v = not window.v
end
imgui.Process = window.v
end
end
function imgui.OnDrawFrame()
local x,y = getScreenResolution()
if window.v then
imgui.SetNextWindowPos(imgui.ImVec2(x/3, y/3), imgui.Cond.FirstUseEver)
imgui.SetNextWindowSize(imgui.ImVec2(500.0, 500.0), imgui.Cond.FirstUseEver)
imgui.Begin('Test', window)
imgui.End()
end
end