HAS_ENTITY_ANIM_FINISHED
Returns true once the given animation has finished playing on the entity.
Signature
BOOL HAS_ENTITY_ANIM_FINISHED(Entity entity, const char* animDict, const char* animName, int p3); // 0xAEB40615337EF1E3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | animDict | const char* |
| 3 | animName | const char* |
| 4 | p3 | int |
Facts
| Name | HAS_ENTITY_ANIM_FINISHED |
|---|---|
| Hash | 0xAEB40615337EF1E3 |
| 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(0xAEB40615337EF1E3, -- HAS_ENTITY_ANIM_FINISHED
PlayerPedId(), -- Entity entity
"text", -- const char* animDict
"text", -- const char* animName
0 -- int p3
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAEB40615337EF1E3", // HAS_ENTITY_ANIM_FINISHED
PlayerPedId(), // Entity entity
"text", // const char* animDict
"text", // const char* animName
0, // int p3
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAEB40615337EF1E3, // HAS_ENTITY_ANIM_FINISHED
API.PlayerPedId(), // Entity entity
"text", // const char* animDict
"text", // const char* animName
0 // int p3
);Related ENTITY natives
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_OBJECT
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE
- HAS_ENTITY_CLEAR_LOS_TO_COORD
- HAS_ENTITY_COLLIDED_WITH_ANYTHING
- HAS_ANIM_EVENT_FIRED
- HAS_COLLISION_LOADED_AROUND_ENTITY
- _GET_ENTITY_ANIM_CURRENT_TIME
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.