TasksClient

playAnimOnRunningScenario

PLAY_ANIM_ON_RUNNING_SCENARIO0x748040460F8DF5DC

The GTA V native PLAY_ANIM_ON_RUNNING_SCENARIO of the TASK namespace, as LS:MP client scripts call it: the global function playAnimOnRunningScenario, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
animDictstringstringstring
animNamestringstringstring

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
Tasks TASK
In the game
void PLAY_ANIM_ON_RUNNING_SCENARIO(Ped ped, const char* animDict, const char* animName)
Hash
0x748040460F8DF5DC

Open in the interactive natives reference