TasksClient

getWaypointDistanceAlongRoute

GET_WAYPOINT_DISTANCE_ALONG_ROUTE0xA5B769058763E497

The GTA V native GET_WAYPOINT_DISTANCE_ALONG_ROUTE of the TASK namespace, as LS:MP client scripts call it: the global function getWaypointDistanceAlongRoute, in JavaScript and in Lua.

SignatureJavaScript
getWaypointDistanceAlongRoute(name: string, point: number): number
SignatureLua
getWaypointDistanceAlongRoute(name: string, point: integer): number

Usage

JavaScript
const value = getWaypointDistanceAlongRoute(name, point);
Lua
local value = getWaypointDistanceAlongRoute(name, point)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
pointintnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Tasks TASK
In the game
float GET_WAYPOINT_DISTANCE_ALONG_ROUTE(const char* name, int point)
Hash
0xA5B769058763E497

Open in the interactive natives reference