# TASK::GET_IS_TASK_ACTIVE

- **Hash:** `0xB0760331C7AA4155`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `GetIsTaskActive`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/GET_IS_TASK_ACTIVE

## Signature

```c
BOOL GET_IS_TASK_ACTIVE(Ped ped, int taskIndex);
```

## Parameters

- `ped` (`Ped`)
- `taskIndex` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = GetIsTaskActive(ped, taskIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB0760331C7AA4155, ped, taskIndex, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = GetIsTaskActive(ped, taskIndex);

// by hash
const retval = Citizen.invokeNative('0xB0760331C7AA4155', ped, taskIndex, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xB0760331C7AA4155, ped, taskIndex);
```

## Related enums

- [eTaskType](https://natives.borderlinerp.com/enums/eTaskType.md) — 736 values

*Sources: alloc8or RDR3 NativeDB.*
