WAYPOINT_RECORDING_GET_COORD
Writes the position of waypoint point of waypointRecording into coord. Returns true on success.
Signature
BOOL WAYPOINT_RECORDING_GET_COORD(const char* waypointRecording, int point, Vector3* coord); // 0x2FB897405C90B361 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | waypointRecording | const char* |
| 2 | point | int |
| 3 | coord | Vector3* (out pointer) |
Facts
| Name | WAYPOINT_RECORDING_GET_COORD |
|---|---|
| Hash | 0x2FB897405C90B361 |
| 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, coord = Citizen.InvokeNative(0x2FB897405C90B361, -- WAYPOINT_RECORDING_GET_COORD
"text", -- const char* waypointRecording
0, -- int point
Citizen.PointerValueVector(), -- Vector3* coord
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, coord] = Citizen.invokeNative("0x2FB897405C90B361", // WAYPOINT_RECORDING_GET_COORD
"text", // const char* waypointRecording
0, // int point
Citizen.pointerValueVector(), // Vector3* coord
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var coordArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x2FB897405C90B361, // WAYPOINT_RECORDING_GET_COORD
"text", // const char* waypointRecording
0, // int point
coordArg // Vector3* coord
);
Vector3 coord = coordArg.GetResult<Vector3>();Related TASK natives
- WAYPOINT_RECORDING_GET_CLOSEST_WAYPOINT
- WAYPOINT_RECORDING_GET_NUM_POINTS
- WAYPOINT_RECORDING_GET_SPEED_AT_POINT
- WAYPOINT_PLAYBACK_GET_IS_AIMING
- WAYPOINT_PLAYBACK_GET_IS_PAUSED
- WAYPOINT_PLAYBACK_GET_IS_SHOOTING
- WAYPOINT_PLAYBACK_START_AIMING_AT_COORD
- WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD
- GET_IS_WAYPOINT_RECORDING_LOADED
- WAYPOINT_PLAYBACK_OVERRIDE_SPEED
- WAYPOINT_PLAYBACK_PAUSE
- WAYPOINT_PLAYBACK_RESUME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.