font_flag = require('moonloader').font_flag
my_font = renderCreateFont('Verdana', 12, font_flag.BOLD + font_flag.SHADOW)
st = false
function main()
while not isSampAvailable() do wait (0) end
sampRegisterChatCommand("coords", function()
st = not st
end)
while true do
local x, y, z = getCharCoordinates(PLAYER_PED)
if st then
renderFontDrawText(my_font, "X: " .. x .. " | Y:" .. y .. " | Z: " .. z, 10, 400, 0xFFFFFFFF)
end
wait(0)
end
end