GET_WAYPOINT_DISTANCE_ALONG_ROUTE
Returns the distance along waypointRecording from its start to waypoint p1.
Signature
float GET_WAYPOINT_DISTANCE_ALONG_ROUTE(const char* waypointRecording, int p1); // 0xA5B769058763E497 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | waypointRecording | const char* |
| 2 | p1 | int |
Facts
| Name | GET_WAYPOINT_DISTANCE_ALONG_ROUTE |
|---|---|
| Hash | 0xA5B769058763E497 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xA5B769058763E497, -- GET_WAYPOINT_DISTANCE_ALONG_ROUTE
"text", -- const char* waypointRecording
0, -- int p1
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xA5B769058763E497", // GET_WAYPOINT_DISTANCE_ALONG_ROUTE
"text", // const char* waypointRecording
0, // int p1
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xA5B769058763E497, // GET_WAYPOINT_DISTANCE_ALONG_ROUTE
"text", // const char* waypointRecording
0 // int p1
);Related TASK natives
- GET_PED_WAYPOINT_DISTANCE
- WAYPOINT_RECORDING_GET_CLOSEST_WAYPOINT
- GET_IS_WAYPOINT_RECORDING_LOADED
- GET_PED_WAYPOINT_OVERRIDE_SPEED
- GET_PED_WAYPOINT_PROGRESS
- GET_VEHICLE_WAYPOINT_PLAYBACK_OVERRIDE_SPEED
- GET_VEHICLE_WAYPOINT_PROGRESS
- GET_VEHICLE_WAYPOINT_TARGET_POINT
- _CALCULATE_WAYPOINT_DISTANCE_FROM_START
- SET_PED_WAYPOINT_ROUTE_OFFSET
- TASK_FOLLOW_ENTITY_ALONG_WAYPOINT_RECORDING_AT_OFFSET
- USE_WAYPOINT_RECORDING_AS_ASSISTED_MOVEMENT_ROUTE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.