hasAnimEventFired
HAS_ANIM_EVENT_FIRED0xEAF4CD9EA3E7E922The GTA V native HAS_ANIM_EVENT_FIRED of the ENTITY namespace, as LS:MP client scripts call it: the global function hasAnimEventFired, in JavaScript and in Lua.
hasAnimEventFired(entity: Entity, actionHash: Hash): booleanhasAnimEventFired(entity: Entity, actionHash: Hash): booleanUsage
JavaScript
const result = hasAnimEventFired(entity, actionHash);Lua
local result = hasAnimEventFired(entity, actionHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
actionHash | Hash | 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.
if (hasAnimEventFired(playerPedId(), getHashKey("CreateObject")))
Reference
- Namespace
- Entity ENTITY
- In the game
BOOL HAS_ANIM_EVENT_FIRED(Entity entity, Hash actionHash)- Hash
0xEAF4CD9EA3E7E922