local points = {
{ 0, 0, 3 }
}
local Font = renderCreateFont('Trebuchet MS', 9, 4)
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
for index, point in ipairs(points) do
local x, y, z = table.unpack(point)
if isPointOnScreen(x, y, z, 0.1) then
local x, y = convert3DCoordsToScreen(x, y, z)
local text = 'Waypoint #'..index
renderFontDrawText(Font, text, x - renderGetFontDrawTextLength(Font, text) / 2, y - renderGetFontDrawHeight(Font), 0xCCffffff)
renderDrawPolygon(x, y + 10, 14, 14, 4, 0, 0xFF000000)
renderDrawPolygon(x, y + 10, 10, 10, 4, 0, 0xFFffffff)...