The Lab
ENTITY native

_GET_ENTITY_ANIM_CURRENT_TIME

returns float3 paramsbuild 1207

Returns the current playback time of the given animation on the entity.

Signature

C
float _GET_ENTITY_ANIM_CURRENT_TIME(Entity entity, const char* animDict, const char* animName); // 0x627520389E288A73 b1207

Parameters

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

Facts

Facts about _GET_ENTITY_ANIM_CURRENT_TIME
Name
_GET_ENTITY_ANIM_CURRENT_TIME
Hash
0x627520389E288A73
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(0x627520389E288A73, -- _GET_ENTITY_ANIM_CURRENT_TIME
  PlayerPedId(), -- Entity entity
  "text", -- const char* animDict
  "text", -- const char* animName
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x627520389E288A73", // _GET_ENTITY_ANIM_CURRENT_TIME
  PlayerPedId(), // Entity entity
  "text", // const char* animDict
  "text", // const char* animName
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x627520389E288A73, // _GET_ENTITY_ANIM_CURRENT_TIME
  API.PlayerPedId(), // Entity entity
  "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.