local sw, sh = getScreenResolution()
local posX, posY = sw * 0.101041667, sh * 0.724074074
local movingRightNow = false
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(500) end
local font = renderCreateFont("Arial", 25, 5)
sampRegisterChatCommand("mgla", function()
showCursor(false, false)
movingRightNow = not movingRightNow
print(posX, posY)
end)
while true do
wait(0)
if movingRightNow then
showCursor(true, true)
posX, posY = getCursorPos()
end
renderFontDrawText(font, string.format("%s", os.date("%X")), posX, posY, 0xFFFFFFFF)
end
end