PedClient

playFacialAnim

PLAY_FACIAL_ANIM0xE1E65CA8AC9C00ED

The GTA V native PLAY_FACIAL_ANIM of the PED namespace, as LS:MP client scripts call it: the global function playFacialAnim, in JavaScript and in Lua.

SignatureJavaScript
playFacialAnim(ped: Ped, animName: string, animDict: string): void
SignatureLua
playFacialAnim(ped: Ped, animName: string, animDict: string)

Usage

JavaScript
playFacialAnim(ped, animName, animDict);
Lua
playFacialAnim(ped, animName, animDict)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
animNamestringstringstring
animDictstringstringstring

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.

Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json

Reference

Namespace
Ped PED
In the game
void PLAY_FACIAL_ANIM(Ped ped, const char* animName, const char* animDict)
Hash
0xE1E65CA8AC9C00ED

Open in the interactive natives reference