TasksClient

setAnimPhase

SET_ANIM_PHASE0xDDF3CB5A0A4C0B49

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

SignatureJavaScript
setAnimPhase(
  entity: Entity,
  phase: number,
  priority: number,
  secondary: boolean
): void
SignatureLua
setAnimPhase(
  entity: Entity,
  phase: number,
  priority: integer,
  secondary: boolean
)

Usage

JavaScript
setAnimPhase(entity, phase, priority, secondary);
Lua
setAnimPhase(entity, phase, priority, secondary)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
phasefloatnumbernumber
priorityintnumberinteger
secondaryBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void SET_ANIM_PHASE(Entity entity, float phase, int priority, BOOL secondary)
Hash
0xDDF3CB5A0A4C0B49
Introduced
Game build 2372 legacy numbering
Formerly
_SET_ANIM_PLAYBACK_TIME

Open in the interactive natives reference