STOP_ENTITY_ANIM
Stops the given animation on the entity. Returns true on success.
Signature
BOOL STOP_ENTITY_ANIM(Entity entity, const char* animation, const char* animGroup, float p3); // 0x786591D986DE9159 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | animation | const char* |
| 3 | animGroup | const char* |
| 4 | p3 | float |
Facts
| Name | STOP_ENTITY_ANIM |
|---|---|
| Hash | 0x786591D986DE9159 |
| 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(0x786591D986DE9159, -- STOP_ENTITY_ANIM
PlayerPedId(), -- Entity entity
"text", -- const char* animation
"text", -- const char* animGroup
0.0 -- float p3
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x786591D986DE9159", // STOP_ENTITY_ANIM
PlayerPedId(), // Entity entity
"text", // const char* animation
"text", // const char* animGroup
0.0, // float p3
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x786591D986DE9159, // STOP_ENTITY_ANIM
API.PlayerPedId(), // Entity entity
"text", // const char* animation
"text", // const char* animGroup
0.0f // float p3
);Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- _GET_ENTITY_ANIM_CURRENT_TIME
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _IS_ENTITY_PLAYING_ANY_ANIM
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- HAS_ENTITY_ANIM_FINISHED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.