EntityClient

getAnimDuration

GET_ANIM_DURATION0xFEDDF04D62B8D790

The 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.

SignatureJavaScript
getAnimDuration(animDict: string, animName: string): number
SignatureLua
getAnimDuration(animDict: string, animName: string): number

Usage

JavaScript
const value = getAnimDuration(animDict, animName);
Lua
local value = getAnimDuration(animDict, animName)

Parameters

ParameterTypeJavaScriptLua
animDictstringstringstring
animNamestringstringstring

Returns

float JavaScript number, Lua number

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
Entity ENTITY
In the game
float GET_ANIM_DURATION(const char* animDict, const char* animName)
Hash
0xFEDDF04D62B8D790
Formerly
_GET_ANIM_DURATION

Open in the interactive natives reference