AudioClient

playPain

PLAY_PAIN0xBC9AE166038A5CEC

The GTA V native PLAY_PAIN of the AUDIO namespace, as LS:MP client scripts call it: the global function playPain, in JavaScript and in Lua.

SignatureJavaScript
playPain(ped: Ped, painID: number, p1: number, p3: any): void
SignatureLua
playPain(ped: Ped, painID: integer, p1: integer, p3: any)

Usage

JavaScript
playPain(ped, painID, p1, p3);
Lua
playPain(ped, painID, p1, p3)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
painIDintnumberinteger
p1intnumberinteger
p3Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Needs another parameter [int p2]. The signature is playPain(Ped ped, int painID, int p1, int p2);

Last 2 parameters always seem to be 0.

EX: Function.Call(Hash.PLAY_PAIN, TestPed, 6, 0, 0);

Known Pain IDs


1 - Doesn't seem to do anything. Does NOT crash the game like previously said. (Latest patch)
6 - Scream (Short)
7 - Scared Scream (Kinda Long)
8 - On Fire

Reference

Namespace
Audio AUDIO
In the game
void PLAY_PAIN(Ped ped, int painID, int p1, Any p3)
Hash
0xBC9AE166038A5CEC

Open in the interactive natives reference