The Lab
ENTITY native

GET_ANIM_DURATION

returns float2 paramsbuild 1207

Returns the duration of the given animation, in seconds.

Signature

C
float GET_ANIM_DURATION(const char* animDict, const char* animName); // 0x9FFAF4940A54CC09 b1207

Parameters

#NameType
1animDictconst char*
2animNameconst char*

Facts

Facts about GET_ANIM_DURATION
Name
GET_ANIM_DURATION
Hash
0x9FFAF4940A54CC09
Namespace
Returns
float
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(0x9FFAF4940A54CC09, -- GET_ANIM_DURATION
  "text", -- const char* animDict
  "text", -- const char* animName
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x9FFAF4940A54CC09", // GET_ANIM_DURATION
  "text", // const char* animDict
  "text", // const char* animName
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x9FFAF4940A54CC09, // GET_ANIM_DURATION
  "text", // const char* animDict
  "text" // const char* animName
);
All ENTITY natives

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