RedM Natives

PLAY_PAIN

Valid pain IDs: 0..12

Hash0xBC9AE166038A5CEC
Runtime namePlayPain
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBC9AE166038A5CEC

Signature

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

Parameters

NameTypeDescription
pedPed—
painIdint—
p2float—
p3BOOL—
isNetworkBOOL—

Returns void

Description

alloc8or RDR3 NativeDB

Valid pain IDs: 0..12

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
PlayPain(ped, painId, p2, p3, isNetwork)

-- always works, by hash
Citizen.InvokeNative(0xBC9AE166038A5CEC, ped, painId, p2, p3, isNetwork)
JavaScript and C#
JavaScript
PlayPain(ped, painId, p2, p3, isNetwork);

// by hash
Citizen.invokeNative('0xBC9AE166038A5CEC', ped, painId, p2 + 0.0000001, p3, isNetwork);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.