TASK_VEHICLE_MISSION
Gives driver a vehicle mission of type missionType against vehicleTarget.
Signature
void TASK_VEHICLE_MISSION(Ped driver, Vehicle vehicle, Vehicle vehicleTarget, int missionType, float p4, Any p5, float p6, float p7, BOOL DriveAgainstTraffic); // 0x659427E0EF36BCDE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | driver | Ped |
| 2 | vehicle | Vehicle |
| 3 | vehicleTarget | Vehicle |
| 4 | missionType | int |
| 5 | p4 | float |
| 6 | p5 | Any |
| 7 | p6 | float |
| 8 | p7 | float |
| 9 | DriveAgainstTraffic | BOOL |
Facts
| Name | TASK_VEHICLE_MISSION |
|---|---|
| Hash | 0x659427E0EF36BCDE |
| 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(0x659427E0EF36BCDE, -- TASK_VEHICLE_MISSION
PlayerPedId(), -- Ped driver
0, -- Vehicle vehicle
0, -- Vehicle vehicleTarget
0, -- int missionType
0.0, -- float p4
0, -- Any p5
0.0, -- float p6
0.0, -- float p7
false -- BOOL DriveAgainstTraffic
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x659427E0EF36BCDE", // TASK_VEHICLE_MISSION
PlayerPedId(), // Ped driver
0, // Vehicle vehicle
0, // Vehicle vehicleTarget
0, // int missionType
0.0, // float p4
0, // Any p5
0.0, // float p6
0.0, // float p7
false // BOOL DriveAgainstTraffic
);Function.Call((Hash)0x659427E0EF36BCDE, // TASK_VEHICLE_MISSION
API.PlayerPedId(), // Ped driver
0, // Vehicle vehicle
0, // Vehicle vehicleTarget
0, // int missionType
0.0f, // float p4
0, // Any p5
0.0f, // float p6
0.0f, // float p7
false // BOOL DriveAgainstTraffic
);Related TASK natives
- TASK_VEHICLE_MISSION_PED_TARGET
- TASK_VEHICLE_AIM_AT_COORD
- TASK_VEHICLE_AIM_AT_PED
- TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
- TASK_VEHICLE_DRIVE_TO_COORD
- TASK_VEHICLE_DRIVE_TO_DESTINATION
- TASK_VEHICLE_DRIVE_WANDER
- TASK_VEHICLE_ESCORT
- TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING
- TASK_VEHICLE_GOTO_NAVMESH
- TASK_VEHICLE_SHOOT_AT_COORD
- TASK_VEHICLE_SHOOT_AT_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.