The Lab
ENTITY native

IS_ENTITY_PLAYING_ANIM

returns BOOL4 paramsbuild 1207

Returns true if the entity is playing the given animation.

Signature

C
BOOL IS_ENTITY_PLAYING_ANIM(Entity entity, const char* animDict, const char* animName, int animType); // 0xDEE49D5CA6C49148 b1207

Parameters

#NameType
1entityEntity
2animDictconst char*
3animNameconst char*
4animTypeint

Facts

Facts about IS_ENTITY_PLAYING_ANIM
Name
IS_ENTITY_PLAYING_ANIM
Hash
0xDEE49D5CA6C49148
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xDEE49D5CA6C49148, -- IS_ENTITY_PLAYING_ANIM
  PlayerPedId(), -- Entity entity
  "text", -- const char* animDict
  "text", -- const char* animName
  0 -- int animType
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xDEE49D5CA6C49148", // IS_ENTITY_PLAYING_ANIM
  PlayerPedId(), // Entity entity
  "text", // const char* animDict
  "text", // const char* animName
  0, // int animType
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xDEE49D5CA6C49148, // IS_ENTITY_PLAYING_ANIM
  API.PlayerPedId(), // Entity entity
  "text", // const char* animDict
  "text", // const char* animName
  0 // int animType
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.