RedM Natives

WAYPOINT_RECORDING_GET_COORD

Hash0x2FB897405C90B361
Runtime nameWaypointRecordingGetCoord
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2FB897405C90B361

Signature

BOOL WAYPOINT_RECORDING_GET_COORD(const char* waypointRecording, int point, Vector3* coord);

Parameters

NameTypeDescription
waypointRecordingconst char*—
pointint—
coordVector3*—

Returns BOOL

Usage

Lua
local retval, coord = WaypointRecordingGetCoord(waypointRecording, point, coord)

-- always works, by hash
local retval, coord = Citizen.InvokeNative(0x2FB897405C90B361, waypointRecording, point, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, coord] = WaypointRecordingGetCoord(waypointRecording, point, coord);

// by hash
const [retval, coord] = Citizen.invokeNative('0x2FB897405C90B361', waypointRecording, point, Citizen.pointerValueVector(), Citizen.returnResultAnyway());
C#
var coord = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x2FB897405C90B361, waypointRecording, point, coord);
// coord.GetResult<Vector3>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.