GET_IS_TASK_ACTIVE
Returns true if the task with index taskIndex is active on ped.
Signature
BOOL GET_IS_TASK_ACTIVE(Ped ped, int taskIndex); // 0xB0760331C7AA4155 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | taskIndex | int |
Facts
| Name | GET_IS_TASK_ACTIVE |
|---|---|
| Hash | 0xB0760331C7AA4155 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xB0760331C7AA4155, -- GET_IS_TASK_ACTIVE
PlayerPedId(), -- Ped ped
0 -- int taskIndex
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xB0760331C7AA4155", // GET_IS_TASK_ACTIVE
PlayerPedId(), // Ped ped
0, // int taskIndex
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xB0760331C7AA4155, // GET_IS_TASK_ACTIVE
API.PlayerPedId(), // Ped ped
0 // int taskIndex
);Related TASK natives
- IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_MOUNTED_WEAPON_TASK_UNDERNEATH_DRIVING_TASK
- IS_TASK_MOVE_NETWORK_ACTIVE
- GET_IS_CARRIABLE_ENTITY
- GET_IS_PED_AIMING_IN_THE_AIR
- GET_IS_WAYPOINT_RECORDING_LOADED
- GET_ACTIVE_VEHICLE_MISSION_TYPE
- GET_RANSACK_SCENARIO_POINT_PED_IS_USING
- GET_SCRIPT_TASK_STATUS
- GET_TASK_MOVE_NETWORK_EVENT
- GET_TASK_MOVE_NETWORK_STATE
- _GET_PED_IS_IGNORING_DEAD_BODIES
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.