getAnimDuration
GET_ANIM_DURATION0xFEDDF04D62B8D790The GTA V native GET_ANIM_DURATION of the ENTITY namespace, as LS:MP client scripts call it: the global function getAnimDuration, in JavaScript and in Lua.
getAnimDuration(animDict: string, animName: string): numbergetAnimDuration(animDict: string, animName: string): numberUsage
JavaScript
const value = getAnimDuration(animDict, animName);Lua
local value = getAnimDuration(animDict, animName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
animDict | string | string | string |
animName | string | string | string |
Returns
float JavaScript number, Lua numberNotes
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
- Entity ENTITY
- In the game
float GET_ANIM_DURATION(const char* animDict, const char* animName)- Hash
0xFEDDF04D62B8D790- Formerly
_GET_ANIM_DURATION