EntityClient

hasAnimEventFired

HAS_ANIM_EVENT_FIRED0xEAF4CD9EA3E7E922

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

SignatureJavaScript
hasAnimEventFired(entity: Entity, actionHash: Hash): boolean
SignatureLua
hasAnimEventFired(entity: Entity, actionHash: Hash): boolean

Usage

JavaScript
const result = hasAnimEventFired(entity, actionHash);
Lua
local result = hasAnimEventFired(entity, actionHash)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
actionHashHashnumberinteger

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.

if (hasAnimEventFired(playerPedId(), getHashKey("CreateObject")))

Reference

Namespace
Entity ENTITY
In the game
BOOL HAS_ANIM_EVENT_FIRED(Entity entity, Hash actionHash)
Hash
0xEAF4CD9EA3E7E922

Open in the interactive natives reference