playAnimOnRunningScenario
PLAY_ANIM_ON_RUNNING_SCENARIO0x748040460F8DF5DCThe 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.
playAnimOnRunningScenario(ped: Ped, animDict: string, animName: string): voidplayAnimOnRunningScenario(ped: Ped, animDict: string, animName: string)Usage
JavaScript
playAnimOnRunningScenario(ped, animDict, animName);Lua
playAnimOnRunningScenario(ped, animDict, animName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
animDict | string | string | string |
animName | string | string | string |
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