TASK_VEHICLE_DRIVE_TO_DESTINATION
Tasks driver to drive vehicle to (x, y, z) at speed using drivingFlags.
Signature
void TASK_VEHICLE_DRIVE_TO_DESTINATION(Ped driver, Vehicle vehicle, float x, float y, float z, float speed, int drivingFlags, int p7, float stoppingRange1, float stoppingRange2, BOOL p10); // 0x7F241A0D14354583 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | driver | Ped |
| 2 | vehicle | Vehicle |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | speed | float |
| 7 | drivingFlags | int |
| 8 | p7 | int |
| 9 | stoppingRange1 | float |
| 10 | stoppingRange2 | float |
| 11 | p10 | BOOL |
Facts
| Name | TASK_VEHICLE_DRIVE_TO_DESTINATION |
|---|---|
| Hash | 0x7F241A0D14354583 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x7F241A0D14354583, -- TASK_VEHICLE_DRIVE_TO_DESTINATION
PlayerPedId(), -- Ped driver
0, -- Vehicle vehicle
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float speed
0, -- int drivingFlags
0, -- int p7
0.0, -- float stoppingRange1
0.0, -- float stoppingRange2
false -- BOOL p10
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x7F241A0D14354583", // TASK_VEHICLE_DRIVE_TO_DESTINATION
PlayerPedId(), // Ped driver
0, // Vehicle vehicle
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float speed
0, // int drivingFlags
0, // int p7
0.0, // float stoppingRange1
0.0, // float stoppingRange2
false // BOOL p10
);Function.Call((Hash)0x7F241A0D14354583, // TASK_VEHICLE_DRIVE_TO_DESTINATION
API.PlayerPedId(), // Ped driver
0, // Vehicle vehicle
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float speed
0, // int drivingFlags
0, // int p7
0.0f, // float stoppingRange1
0.0f, // float stoppingRange2
false // BOOL p10
);Related TASK natives
- TASK_VEHICLE_DRIVE_TO_COORD
- TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
- TASK_VEHICLE_DRIVE_WANDER
- _TASK_VEHICLE_DRIVE_TO_DESTINATION_2
- _TASK_VEHICLE_DRIVE_TO_COORD_2
- _TASK_VEHICLE_DRIVE_TO_POINT_2
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_MOVE_IN_TRAFFIC_TO_DESTINATION
- TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT
- TASK_VEHICLE_AIM_AT_COORD
- TASK_VEHICLE_AIM_AT_PED
- TASK_VEHICLE_ESCORT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.