_SIMULATED_ROUTE_CREATE
Based on its name and signature, here is our best reading:
Creates a simulated route between two points and returns its handle.
Signature
Any _SIMULATED_ROUTE_CREATE(float x1, float y1, float z1, float x2, float y2, float z2, int p6); // 0xFD5BB35AAB83FD48 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x1 | float |
| 2 | y1 | float |
| 3 | z1 | float |
| 4 | x2 | float |
| 5 | y2 | float |
| 6 | z2 | float |
| 7 | p6 | int |
Facts
| Name | _SIMULATED_ROUTE_CREATE |
|---|---|
| Hash | 0xFD5BB35AAB83FD48 |
| Namespace | |
| Returns | Any |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xFD5BB35AAB83FD48, -- _SIMULATED_ROUTE_CREATE
0.0, -- float x1
0.0, -- float y1
0.0, -- float z1
0.0, -- float x2
0.0, -- float y2
0.0, -- float z2
0, -- int p6
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xFD5BB35AAB83FD48", // _SIMULATED_ROUTE_CREATE
0.0, // float x1
0.0, // float y1
0.0, // float z1
0.0, // float x2
0.0, // float y2
0.0, // float z2
0, // int p6
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xFD5BB35AAB83FD48, // _SIMULATED_ROUTE_CREATE
0.0f, // float x1
0.0f, // float y1
0.0f, // float z1
0.0f, // float x2
0.0f, // float y2
0.0f, // float z2
0 // int p6
);Related PATH natives
- _SIMULATED_ROUTE_DELETE
- _SIMULATED_ROUTE_EXISTS
- SIMULATED_ROUTE_GET_ETA
- SIMULATED_ROUTE_IS_LOADED
- SIMULATED_ROUTE_TRAVEL_TO_POINT
- GET_GPS_BLIP_ROUTE_FOUND
- GET_GPS_BLIP_ROUTE_LENGTH
- _ADD_NAVMESH_BLOCKING_VOLUME
- _DOES_NAVMESH_BLOCKING_VOLUME_EXIST
- _GET_SPAWN_DATA_FOR_ROAD_NODE
- _NAVMESH_ACTIVATE_SWAP
- _NAVMESH_ASSIGN_NAVMESH_TO_VEHICLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.