isEntityPlayingAnim
IS_ENTITY_PLAYING_ANIM0x1F0B79228E461EC9The GTA V native IS_ENTITY_PLAYING_ANIM of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityPlayingAnim, in JavaScript and in Lua.
isEntityPlayingAnim(
entity: Entity,
animDict: string,
animName: string,
taskFlag: number
): booleanisEntityPlayingAnim(
entity: Entity,
animDict: string,
animName: string,
taskFlag: integer
): booleanUsage
JavaScript
const result = isEntityPlayingAnim(entity, animDict, animName, taskFlag);Lua
local result = isEntityPlayingAnim(entity, animDict, animName, taskFlag)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
animDict | string | string | string |
animName | string | string | string |
taskFlag | 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.
See also isScriptedScenarioPedUsingConditionalAnim
Taken from isEntityPlayingAnim(playerPedId(), "creatures@shark@move", "attack_player", 3)
p4 is always 3 in the scripts.
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 IS_ENTITY_PLAYING_ANIM(Entity entity, const char* animDict, const char* animName, int taskFlag)- Hash
0x1F0B79228E461EC9