EntityClient

hasEntityAnimFinished

HAS_ENTITY_ANIM_FINISHED0x20B711662962B472

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

SignatureJavaScript
hasEntityAnimFinished(
  entity: Entity,
  animDict: string,
  animName: string,
  p3: number
): boolean
SignatureLua
hasEntityAnimFinished(
  entity: Entity,
  animDict: string,
  animName: string,
  p3: integer
): boolean

Usage

JavaScript
const result = hasEntityAnimFinished(entity, animDict, animName, p3);
Lua
local result = hasEntityAnimFinished(entity, animDict, animName, p3)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
animDictstringstringstring
animNamestringstringstring
p3intnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference