TasksClientChecked by LS:MP

playEntityScriptedAnim

PLAY_ENTITY_SCRIPTED_ANIM0x77A1EEC547E7FCF1

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

SignatureJavaScript
playEntityScriptedAnim(
  entity: Entity,
  priorityLowData: ScriptedAnimSlot,
  priorityMidData: ScriptedAnimSlot,
  priorityHighData: ScriptedAnimSlot,
  blendInDelta: number,
  blendOutDelta: number
): void
SignatureLua
playEntityScriptedAnim(
  entity: Entity,
  priorityLowData: table,
  priorityMidData: table,
  priorityHighData: table,
  blendInDelta: number,
  blendOutDelta: number
)

Usage

JavaScript
playEntityScriptedAnim(
  entity, priorityLowData, priorityMidData, priorityHighData, blendInDelta, blendOutDelta
);
Lua
playEntityScriptedAnim(
    entity, priorityLowData, priorityMidData, priorityHighData, blendInDelta, blendOutDelta
)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
priorityLowDataScriptedAnimSlotScriptedAnimSlottable
priorityMidDataScriptedAnimSlotScriptedAnimSlottable
priorityHighDataScriptedAnimSlotScriptedAnimSlottable
blendInDeltafloatnumbernumber
blendOutDeltafloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Local entity animation

Use a local vehicle or object owned by the calling resource. Supply up to three priority records and load each animation dictionary before calling. Both blend deltas must be between 0 and 1,000.

ℹ
GTA V Enhanced 1158.16

This LS:MP adapter is available on Enhanced 1158.16. Calls on another build raise an error.

Reference

Namespace
Tasks TASK
In the game
void PLAY_ENTITY_SCRIPTED_ANIM(Entity entity, ScriptedAnimSlot priorityLowData, ScriptedAnimSlot priorityMidData, ScriptedAnimSlot priorityHighData, float blendInDelta, float blendOutDelta)
Hash
0x77A1EEC547E7FCF1

Open in the interactive natives reference