# AUDIO::PLAY_PAIN

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

## Signature

```c
void PLAY_PAIN(Ped ped, int painId, float p2, BOOL p3, BOOL isNetwork);
```

## Parameters

- `ped` (`Ped`)
- `painId` (`int`)
- `p2` (`float`)
- `p3` (`BOOL`)
- `isNetwork` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Valid pain IDs: 0..12

*Source: VORPCORE RDR3natives*

Valid pain IDs: 0..12  these names are not official, but here is a list of the IDs:
 1 burning,
 2 drowning,
 3 coughing,
 4 nothing,
 5 nothing,
 6 coughing_2,
 7 nothing,
 8 nothing,
 9 hurtingSick?,
 10 hurtingFall?,
 11 nothing,
 12 choking

## Usage

### Lua

```lua
PlayPain(ped, painId, p2, p3, isNetwork)

-- always available, by hash
Citizen.InvokeNative(0xBC9AE166038A5CEC, ped, painId, p2, p3, isNetwork)
```

### JavaScript

```js
PlayPain(ped, painId, p2, p3, isNetwork);

// by hash
Citizen.invokeNative('0xBC9AE166038A5CEC', ped, painId, p2 + 0.0000001, p3, isNetwork);
```

### C#

```csharp
Function.Call((Hash)0xBC9AE166038A5CEC, ped, painId, p2, p3, isNetwork);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
