TasksClient1 output

waypointRecordingGetCoord

WAYPOINT_RECORDING_GET_COORD0x2FB897405C90B361

The 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.

SignatureJavaScript
waypointRecordingGetCoord(name: string, point: number): [
  ok: boolean,
  coord: { x: number, y: number, z: number }
]
SignatureLua
waypointRecordingGetCoord(name: string, point: integer): boolean, Vector3

Usage

JavaScript
const [ok, coord] = waypointRecordingGetCoord(name, point);
Lua
local ok, coord = waypointRecordingGetCoord(name, point)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
pointintnumberinteger

Returns

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

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2coordVector3{ x: number, y: number, z: number }Vector3output

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

Open in the interactive natives reference