PLAY_PAIN
Valid pain IDs: 0..12
Hash
0xBC9AE166038A5CECRuntime name
PlayPainNamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBC9AE166038A5CECSignature
void PLAY_PAIN(Ped ped, int painId, float p2, BOOL p3, BOOL isNetwork);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
painId | int | — |
p2 | float | — |
p3 | BOOL | — |
isNetwork | BOOL | — |
Returns void
Description
Valid pain IDs: 0..12
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
PlayPain(ped, painId, p2, p3, isNetwork)
-- always works, by hash
Citizen.InvokeNative(0xBC9AE166038A5CEC, ped, painId, p2, p3, isNetwork)JavaScript and C#
PlayPain(ped, painId, p2, p3, isNetwork);
// by hash
Citizen.invokeNative('0xBC9AE166038A5CEC', ped, painId, p2 + 0.0000001, p3, isNetwork);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.