TASK_VEHICLE_MISSION
Hash
0x659427E0EF36BCDERuntime name
TaskVehicleMissionNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x659427E0EF36BCDESignature
void TASK_VEHICLE_MISSION(Ped driver, Vehicle vehicle, Vehicle vehicleTarget, int missionType, float p4, Any p5, float p6, float p7, BOOL DriveAgainstTraffic);Parameters
| Name | Type | Description |
|---|---|---|
driver | Ped | — |
vehicle | Vehicle | — |
vehicleTarget | Vehicle | — |
missionType | int | — |
p4 | float | — |
p5 | Any | — |
p6 | float | — |
p7 | float | — |
DriveAgainstTraffic | BOOL | — |
Returns void
Usage
TaskVehicleMission(driver, vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic)
-- always works, by hash
Citizen.InvokeNative(0x659427E0EF36BCDE, driver, vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic)JavaScript and C#
TaskVehicleMission(driver, vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic);
// by hash
Citizen.invokeNative('0x659427E0EF36BCDE', driver, vehicle, vehicleTarget, missionType, p4 + 0.0000001, p5, p6 + 0.0000001, p7 + 0.0000001, DriveAgainstTraffic);Function.Call((Hash)0x659427E0EF36BCDE, driver, vehicle, vehicleTarget, missionType, p4, p5, p6, p7, DriveAgainstTraffic);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.