waypointRecordingGetCoord
WAYPOINT_RECORDING_GET_COORD0x2FB897405C90B361The GTA V native WAYPOINT_RECORDING_GET_COORD of the TASK namespace, as LS:MP client scripts call it: the global function waypointRecordingGetCoord, in JavaScript and in Lua.
waypointRecordingGetCoord(name: string, point: number): [
ok: boolean,
coord: { x: number, y: number, z: number }
]waypointRecordingGetCoord(name: string, point: integer): boolean, Vector3Usage
JavaScript
const [ok, coord] = waypointRecordingGetCoord(name, point);Lua
local ok, coord = waypointRecordingGetCoord(name, point)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
name | string | string | string |
point | int | number | integer |
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 | coord | Vector3 | { x: number, y: number, z: number } | Vector3 | 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_COORD(const char* name, int point, Vector3* coord)- Hash
0x2FB897405C90B361