Natives ENTITY 0x346D81500D088F42 float GET_ENTITY_ANIM_CURRENT_TIME (Entity entity, char* animDict, char* animName); Documentation Community 0
Property
Value
Native Name
GET_ENTITY_ANIM_CURRENT_TIME
Hash
0x346D81500D088F42
Return Type
float
Parameters
entity (Entity), animDict (char*), animName (char*)
Description: ```
Returns a float value representing animation's current playtime with respect to its total playtime. This value increasing in a range from [0 to 1] and wrap back to 0 when it reach 1.
Example:
0.000000 - mark the starting of animation.
0.500000 - mark the midpoint of the animation.
1.000000 - mark the end of animation.
[Animations list](https://alexguirre.github.io/animations-list/)
Back to ENTITY Before you callCitizen.InvokeNative in CitizenFX Lua does not auto-marshal float/Vector3 returns — the result comes back wrong (community reports both a plain boolean and only-the-x-component-as-a-number); for these returns use the named Lua wrapper (e.g. GetEntityVelocity, GetPedBoneCoords, GetOffsetFromEntityInWorldCoords) or append Citizen.ResultAsVector() / Citizen.ResultAsFloat() as the final InvokeNative argument, and in JS/TS (no wrapper exists) Citizen.resultAsVector() / resultAsFloat() is mandatory; plain int/handle and void returns are unaffected.
Let your AI read the fine print. Native signatures, warnings, and community context. Directly in your editor.
Connect via MCP