HAS_ANIM_EVENT_FIRED
Returns true if the animation event actionHash has fired on the entity this frame.
Signature
BOOL HAS_ANIM_EVENT_FIRED(Entity entity, Hash actionHash); // 0x5851CC48405F4A07 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | actionHash | Hash |
Facts
| Name | HAS_ANIM_EVENT_FIRED |
|---|---|
| Hash | 0x5851CC48405F4A07 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x5851CC48405F4A07, -- HAS_ANIM_EVENT_FIRED
PlayerPedId(), -- Entity entity
GetHashKey("name") -- Hash actionHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x5851CC48405F4A07", // HAS_ANIM_EVENT_FIRED
PlayerPedId(), // Entity entity
GetHashKey("name"), // Hash actionHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x5851CC48405F4A07, // HAS_ANIM_EVENT_FIRED
API.PlayerPedId(), // Entity entity
(uint)API.GetHashKey("name") // Hash actionHash
);Related ENTITY natives
- HAS_ENTITY_ANIM_FINISHED
- FIND_ANIM_EVENT_PHASE
- HAS_COLLISION_LOADED_AROUND_ENTITY
- HAS_COLLISION_LOADED_AROUND_POSITION
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_OBJECT
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_COORD
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- HAS_ENTITY_COLLIDED_WITH_ANYTHING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.