# SCRIPT::IS_THREAD_ACTIVE

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

## Signature

```c
BOOL IS_THREAD_ACTIVE(int threadId, BOOL ignoreKilledState);
```

## Parameters

- `threadId` (`int`)
- `ignoreKilledState` (`BOOL`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsThreadActive(threadId, ignoreKilledState)

-- always available, by hash
local retval = Citizen.InvokeNative(0x46E9AE36D8FA6417, threadId, ignoreKilledState, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsThreadActive(threadId, ignoreKilledState);

// by hash
const retval = Citizen.invokeNative('0x46E9AE36D8FA6417', threadId, ignoreKilledState, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x46E9AE36D8FA6417, threadId, ignoreKilledState);
```

*Sources: alloc8or RDR3 NativeDB.*
