# PLAYER::IS_PLAYER_BEING_ARRESTED

- **Hash:** `0xC8183AE963C58374`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `IsPlayerBeingArrested`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/IS_PLAYER_BEING_ARRESTED

## Signature

```c
BOOL IS_PLAYER_BEING_ARRESTED(Player player, BOOL atArresting);
```

## Parameters

- `player` (`Player`)
- `atArresting` (`BOOL`)

## Returns

`BOOL`

## Description

Return true while player is being arrested / busted.

If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control)

If atArresting is set to 0, this function will return 1 only when the busted screen is shown.

## Usage

### Lua

```lua
local retval = IsPlayerBeingArrested(player, atArresting)

-- always available, by hash
local retval = Citizen.InvokeNative(0xC8183AE963C58374, player, atArresting, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPlayerBeingArrested(player, atArresting);

// by hash
const retval = Citizen.invokeNative('0xC8183AE963C58374', player, atArresting, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xC8183AE963C58374, player, atArresting);
```

*Sources: alloc8or RDR3 NativeDB.*
