hasEntityAnimFinished
HAS_ENTITY_ANIM_FINISHED0x20B711662962B472The GTA V native HAS_ENTITY_ANIM_FINISHED of the ENTITY namespace, as LS:MP client scripts call it: the global function hasEntityAnimFinished, in JavaScript and in Lua.
hasEntityAnimFinished(
entity: Entity,
animDict: string,
animName: string,
p3: number
): booleanhasEntityAnimFinished(
entity: Entity,
animDict: string,
animName: string,
p3: integer
): booleanUsage
JavaScript
const result = hasEntityAnimFinished(entity, animDict, animName, p3);Lua
local result = hasEntityAnimFinished(entity, animDict, animName, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
animDict | string | string | string |
animName | string | string | string |
p3 | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
P3 is always 3 as far as i cant tell
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
BOOL HAS_ENTITY_ANIM_FINISHED(Entity entity, const char* animDict, const char* animName, int p3)- Hash
0x20B711662962B472