require 'lib.moonloader'
local sampev = require 'lib.samp.events'
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("reccoord", Enable)
Enable = false
while true do
wait(0)
if Enable == true then
local mx, my, mz = getCharCoordinates(playerPed)
local str = string.format("%.4f, %.4f, %.4f", mx, my, mz)
sampAddChatMessage(str, -1)
wait(100)
end
end
end
function Enable()
if Enable == true then
Enable = false
else
Enable = true
end
end