RedM Natives

_GET_ENTITY_ANIM_CURRENT_TIME

Returns a normalized value between 0.0f and 1.0f.

Hash0x627520389E288A73
Runtime nameGetEntityAnimCurrentTime
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_ENTITY_ANIM_CURRENT_TIME(Entity entity, const char* animDict, const char* animName);

Parameters

NameTypeDescription
entityEntity—
animDictconst char*—
animNameconst char*—

Returns float

Description

alloc8or RDR3 NativeDB

Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION

femga rdr3_discoveries · research notes

// 0x627520389E288A73    	(By Disquse)
float _GET_ENTITY_ANIM_CURRENT_TIME(Entity entity, char* animDict, char* animName);

Usage

Lua
local retval = GetEntityAnimCurrentTime(entity, animDict, animName)

-- always works, by hash
local retval = Citizen.InvokeNative(0x627520389E288A73, entity, animDict, animName, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetEntityAnimCurrentTime(entity, animDict, animName);

// by hash
const retval = Citizen.invokeNative('0x627520389E288A73', entity, animDict, animName, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x627520389E288A73, entity, animDict, animName);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB · femga rdr3_discoveries

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.