EntityClient

setEntityAnimCurrentTime

SET_ENTITY_ANIM_CURRENT_TIME0x4487C259F0F70977

The GTA V native SET_ENTITY_ANIM_CURRENT_TIME of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityAnimCurrentTime, in JavaScript and in Lua.

SignatureJavaScript
setEntityAnimCurrentTime(
  entity: Entity,
  animDictionary: string,
  animName: string,
  time: number
): void
SignatureLua
setEntityAnimCurrentTime(
  entity: Entity,
  animDictionary: string,
  animName: string,
  time: number
)

Usage

JavaScript
setEntityAnimCurrentTime(entity, animDictionary, animName, time);
Lua
setEntityAnimCurrentTime(entity, animDictionary, animName, time)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
animDictionarystringstringstring
animNamestringstringstring
timefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_ANIM_CURRENT_TIME(Entity entity, const char* animDictionary, const char* animName, float time)
Hash
0x4487C259F0F70977

Open in the interactive natives reference