WAYPOINT_RECORDING_GET_NUM_POINTS
Writes the number of waypoints in waypointRecording into points. Returns true on success.
Signature
BOOL WAYPOINT_RECORDING_GET_NUM_POINTS(const char* waypointRecording, int* points); // 0x5343532C01A07234 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | waypointRecording | const char* |
| 2 | points | int* (out pointer) |
Facts
| 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.
local result, points = Citizen.InvokeNative(0x5343532C01A07234, -- WAYPOINT_RECORDING_GET_NUM_POINTS
"text", -- const char* waypointRecording
Citizen.PointerValueInt(), -- int* points
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, points] = Citizen.invokeNative("0x5343532C01A07234", // WAYPOINT_RECORDING_GET_NUM_POINTS
"text", // const char* waypointRecording
Citizen.pointerValueInt(), // int* points
Citizen.returnResultAnyway()
);
if (result) {
// ...
}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>();Related TASK natives
- WAYPOINT_RECORDING_GET_CLOSEST_WAYPOINT
- WAYPOINT_RECORDING_GET_COORD
- WAYPOINT_RECORDING_GET_SPEED_AT_POINT
- WAYPOINT_PLAYBACK_GET_IS_AIMING
- WAYPOINT_PLAYBACK_GET_IS_PAUSED
- WAYPOINT_PLAYBACK_GET_IS_SHOOTING
- GET_IS_WAYPOINT_RECORDING_LOADED
- WAYPOINT_PLAYBACK_OVERRIDE_SPEED
- WAYPOINT_PLAYBACK_PAUSE
- WAYPOINT_PLAYBACK_RESUME
- WAYPOINT_PLAYBACK_START_AIMING_AT_COORD
- WAYPOINT_PLAYBACK_START_AIMING_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.