waypointRecordingGetNumPoints
WAYPOINT_RECORDING_GET_NUM_POINTS0x5343532C01A07234The 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.
waypointRecordingGetNumPoints(name: string): [ok: boolean, points: number]waypointRecordingGetNumPoints(name: string): boolean, integerUsage
JavaScript
const [ok, points] = waypointRecordingGetNumPoints(name);Lua
local ok, points = waypointRecordingGetNumPoints(name)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
name | string | string | string |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | points | int | number | integer | output |
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