EntityClient

setEntityAnimSpeed

SET_ENTITY_ANIM_SPEED0x28D1A16553C51776

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

SignatureJavaScript
setEntityAnimSpeed(
  entity: Entity,
  animDictionary: string,
  animName: string,
  speedMultiplier: number
): void
SignatureLua
setEntityAnimSpeed(
  entity: Entity,
  animDictionary: string,
  animName: string,
  speedMultiplier: number
)

Usage

JavaScript
setEntityAnimSpeed(entity, animDictionary, animName, speedMultiplier);
Lua
setEntityAnimSpeed(entity, animDictionary, animName, speedMultiplier)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
animDictionarystringstringstring
animNamestringstringstring
speedMultiplierfloatnumbernumber

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_SPEED(Entity entity, const char* animDictionary, const char* animName, float speedMultiplier)
Hash
0x28D1A16553C51776

Open in the interactive natives reference