local ev = require 'lib.samp.events'
local anal
local coords = {}
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('anal', function()
anal = not anal
sampAddChatMessage(tostring(anal), -1)
end)
while true do wait(0)
if anal then
coords.x, coords.y, coords.z = getCharCoordinates(PLAYER_PED)
wait(500)
end
end
end
function ev.onSendPlayerSync(d)
if anal then
d.position.x = coords.x
d.position.y = coords.y
d.position.z = coords.z
end
end