Exports

Client-side:

-- AddWaypoint: Adds a waypoint to the player's view (client)  

local index = AddWaypoint(label, coords, {
    icon = "WAYPOINT_URL", -- or "default" to use internal icon for color support.
    color = {255, 255, 255, 255}, -- rgba value, used for internal icon and marker.
    clearEnter = true, -- Upon entering the area, remove the waypoint.
    blipId = 1, -- Display waypoint on map, or set to nil to disable.
    blipColor = 0, -- Blip color on the map.
})

-- RemoveWaypoint: Removes a waypoint from the player's view (client)

RemoveWaypoint(index)

-- GetWaypoint: Gets the updated information regarding the waypoint passed in index.

local waypointData = GetWaypoint(index)

-- UpdateWaypointCoords: Update the location of the waypoint.

UpdateWaypointCoords(index, vector3(100.0, 20.0, 30.0))

-- UpdateWaypointSettings: Update the waypoint's settings.

UpdateWaypointSettings(index, {
    icon = "WAYPOINT_URL", -- or "default" to use internal icon for color support.
    color = {255, 255, 255, 255}, -- rgba value, used for internal icon and marker.
})

Last updated