function imgui.OnDrawFrame()
if window.v then
local xw, yw = getScreenResolution()
local sizeX, sizeY = 215, 200
imgui.SetNextWindowPos(imgui.ImVec2(xw / 1.7, yw / 1.7), imgui.Cond.FirstUseEver)
imgui.SetNextWindowSize(imgui.ImVec2(sizeX, sizeY), imgui.Cond.FirstUseEver)
imgui.Begin("Miner Bot", imgui.WindowFlags.NoResize)
if imgui.Button('On', imgui.ImVec2(98, 20)) then
enabled = true
end
imgui.SameLine()
if imgui.Button('Off', imgui.ImVec2(98, 20)) then
enabled = false
end
imgui.NewLine()
if imgui.Checkbox('Auto /q', checkbox1) then
mainIni.config.checkbox1 = checkbox1.v
inicfg.save(mainIni, "minerbot.ini")
end
if imgui.Checkbox('Auto Answer', answer) then
mainIni.config.answer = answer.v
inicfg.save(mainIni, "minerbot.ini")
end
imgui.NewLine()
imgui.Separator()
imgui.NewLine()
if imgui.Button('tp marker', imgui.ImVec2(98, 20)) then
setCharCoordinates(PLAYER_PED, 1020.4969,-1017.5552,1398.8281)
end
imgui.SameLine()
if imgui.Button('coord marker', imgui.ImVec2(98, 20)) then
CoordMaster(1020.4969,-1017.5552,1398.8281, 3, 30)
end
if imgui.Button('tp work', imgui.ImVec2(98, 20)) then
setCharCoordinates(PLAYER_PED, 1020.4969,-1017.5552,1398.8281)
end
imgui.SameLine()
if imgui.Button('coord work', imgui.ImVec2(98, 20)) then
CoordMaster(993.4196,-983.4998,1398.8724, 3, 30)
end
if imgui.Button('close window', imgui.ImVec2(203, 25)) then
imgui.ShowCursor = false
window.v = not window.v
end
imgui.End()
end
end