RedM Natives

HAS_ANIM_EVENT_FIRED

Hash0x5851CC48405F4A07
Runtime nameHasAnimEventFired
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEAF4CD9EA3E7E922

Signature

BOOL HAS_ANIM_EVENT_FIRED(Entity entity, Hash actionHash);

Parameters

NameTypeDescription
entityEntity—
actionHashHash—

Returns BOOL

Usage

Lua
local retval = HasAnimEventFired(entity, actionHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5851CC48405F4A07, entity, actionHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasAnimEventFired(entity, actionHash);

// by hash
const retval = Citizen.invokeNative('0x5851CC48405F4A07', entity, actionHash, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x5851CC48405F4A07, entity, actionHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.