The Lab
TASK native

WAYPOINT_RECORDING_GET_NUM_POINTS

returns BOOL2 paramsbuild 1207

Writes the number of waypoints in waypointRecording into points. Returns true on success.

Signature

C
BOOL WAYPOINT_RECORDING_GET_NUM_POINTS(const char* waypointRecording, int* points); // 0x5343532C01A07234 b1207

Parameters

#NameType
1waypointRecordingconst char*
2pointsint* (out pointer)

Facts

Facts about WAYPOINT_RECORDING_GET_NUM_POINTS
Name
WAYPOINT_RECORDING_GET_NUM_POINTS
Hash
0x5343532C01A07234
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, points = Citizen.InvokeNative(0x5343532C01A07234, -- WAYPOINT_RECORDING_GET_NUM_POINTS
  "text", -- const char* waypointRecording
  Citizen.PointerValueInt(), -- int* points
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, points] = Citizen.invokeNative("0x5343532C01A07234", // WAYPOINT_RECORDING_GET_NUM_POINTS
  "text", // const char* waypointRecording
  Citizen.pointerValueInt(), // int* points
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var pointsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x5343532C01A07234, // WAYPOINT_RECORDING_GET_NUM_POINTS
  "text", // const char* waypointRecording
  pointsArg // int* points
);
int points = pointsArg.GetResult<int>();
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.