# PLAYER::FORCE_CLEANUP_FOR_THREAD_WITH_THIS_ID

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

## Signature

```c
void FORCE_CLEANUP_FOR_THREAD_WITH_THIS_ID(int id, int cleanupFlags);
```

## Parameters

- `id` (`int`)
- `cleanupFlags` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
ForceCleanupForThreadWithThisId(id, cleanupFlags)

-- always available, by hash
Citizen.InvokeNative(0xF4C9512A2F0A3031, id, cleanupFlags)
```

### JavaScript

```js
ForceCleanupForThreadWithThisId(id, cleanupFlags);

// by hash
Citizen.invokeNative('0xF4C9512A2F0A3031', id, cleanupFlags);
```

### C#

```csharp
Function.Call((Hash)0xF4C9512A2F0A3031, id, cleanupFlags);
```

*Sources: alloc8or RDR3 NativeDB.*
