TasksClient1 output

waypointRecordingGetNumPoints

WAYPOINT_RECORDING_GET_NUM_POINTS0x5343532C01A07234

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

SignatureJavaScript
waypointRecordingGetNumPoints(name: string): [ok: boolean, points: number]
SignatureLua
waypointRecordingGetNumPoints(name: string): boolean, integer

Usage

JavaScript
const [ok, points] = waypointRecordingGetNumPoints(name);
Lua
local ok, points = waypointRecordingGetNumPoints(name)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2pointsintnumberintegeroutput

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Full list of waypoint recordings by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/waypointRecordings.json
For a full list of the points, see here: goo.gl/wIH0vn

Reference

Namespace
Tasks TASK
In the game
BOOL WAYPOINT_RECORDING_GET_NUM_POINTS(const char* name, int* points)
Hash
0x5343532C01A07234

Open in the interactive natives reference