GET_ACTIVE_VEHICLE_MISSION_TYPE
Returns the type of the vehicle mission (drive task) currently active on vehicle.
Signature
int GET_ACTIVE_VEHICLE_MISSION_TYPE(Vehicle vehicle); // 0x534AEBA6E5ED4CAB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
Facts
| Name | GET_ACTIVE_VEHICLE_MISSION_TYPE |
|---|---|
| Hash | 0x534AEBA6E5ED4CAB |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x534AEBA6E5ED4CAB, -- GET_ACTIVE_VEHICLE_MISSION_TYPE
0, -- Vehicle vehicle
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x534AEBA6E5ED4CAB", // GET_ACTIVE_VEHICLE_MISSION_TYPE
0, // Vehicle vehicle
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x534AEBA6E5ED4CAB, // GET_ACTIVE_VEHICLE_MISSION_TYPE
0 // Vehicle vehicle
);Related TASK natives
- GET_IS_TASK_ACTIVE
- GET_VEHICLE_WAYPOINT_PLAYBACK_OVERRIDE_SPEED
- GET_VEHICLE_WAYPOINT_PROGRESS
- GET_VEHICLE_WAYPOINT_TARGET_POINT
- _GET_SCENARIO_POINT_TYPE
- _GET_SCENARIO_POINT_TYPE_PED_IS_USING
- TASK_VEHICLE_MISSION
- TASK_VEHICLE_MISSION_PED_TARGET
- VEHICLE_WAYPOINT_PLAYBACK_GET_IS_PAUSED
- GET_IS_CARRIABLE_ENTITY
- GET_IS_PED_AIMING_IN_THE_AIR
- GET_IS_WAYPOINT_RECORDING_LOADED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.