setEntityAnimCurrentTime
SET_ENTITY_ANIM_CURRENT_TIME0x4487C259F0F70977The 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.
setEntityAnimCurrentTime(
entity: Entity,
animDictionary: string,
animName: string,
time: number
): voidsetEntityAnimCurrentTime(
entity: Entity,
animDictionary: string,
animName: string,
time: number
)Usage
JavaScript
setEntityAnimCurrentTime(entity, animDictionary, animName, time);Lua
setEntityAnimCurrentTime(entity, animDictionary, animName, time)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
animDictionary | string | string | string |
animName | string | string | string |
time | float | number | number |
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