TasksClient

stopAnimTask

STOP_ANIM_TASK0x97FF36A1D40EA00A

The GTA V native STOP_ANIM_TASK of the TASK namespace, as LS:MP client scripts call it: the global function stopAnimTask, in JavaScript and in Lua.

SignatureJavaScript
stopAnimTask(
  entity: Entity,
  animDictionary: string,
  animationName: string,
  blendDelta: number
): void
SignatureLua
stopAnimTask(
  entity: Entity,
  animDictionary: string,
  animationName: string,
  blendDelta: number
)

Usage

JavaScript
stopAnimTask(entity, animDictionary, animationName, blendDelta);
Lua
stopAnimTask(entity, animDictionary, animationName, blendDelta)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
animDictionarystringstringstring
animationNamestringstringstring
blendDeltafloatnumbernumber

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
Tasks TASK
In the game
void STOP_ANIM_TASK(Entity entity, const char* animDictionary, const char* animationName, float blendDelta)
Hash
0x97FF36A1D40EA00A

Open in the interactive natives reference