# TASK::IS_PED_IN_WRITHE

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

## Signature

```c
BOOL IS_PED_IN_WRITHE(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`BOOL`

## Description

This native checks if a ped is on the ground, in pain from a (gunshot) wound.

## Usage

### Lua

```lua
local retval = IsPedInWrithe(ped)

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

### JavaScript

```js
const retval = IsPedInWrithe(ped);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
