EntityClient

stopEntityAnim

STOP_ENTITY_ANIM0x28004F88151E03E0

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

SignatureJavaScript
stopEntityAnim(
  entity: Entity,
  animation: string,
  animGroup: string,
  p3: number
): boolean
SignatureLua
stopEntityAnim(
  entity: Entity,
  animation: string,
  animGroup: string,
  p3: number
): boolean

Usage

JavaScript
const result = stopEntityAnim(entity, animation, animGroup, p3);
Lua
local result = stopEntityAnim(entity, animation, animGroup, p3)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
animationstringstringstring
animGroupstringstringstring
p3floatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

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

RAGEPluginHook list: docs.ragepluginhook.net/html/62951c37-a440-478c-b389-c471230ddfc5.htm

Reference

Namespace
Entity ENTITY
In the game
BOOL STOP_ENTITY_ANIM(Entity entity, const char* animation, const char* animGroup, float p3)
Hash
0x28004F88151E03E0

Open in the interactive natives reference