TasksClient

setAnimLooped

SET_ANIM_LOOPED0x70033C3CC29A1FF4

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

SignatureJavaScript
setAnimLooped(
  entity: Entity,
  looped: boolean,
  priority: number,
  secondary: boolean
): void
SignatureLua
setAnimLooped(
  entity: Entity,
  looped: boolean,
  priority: integer,
  secondary: boolean
)

Usage

JavaScript
setAnimLooped(entity, looped, priority, secondary);
Lua
setAnimLooped(entity, looped, priority, secondary)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
loopedBOOLbooleanboolean
priorityintnumberinteger
secondaryBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void SET_ANIM_LOOPED(Entity entity, BOOL looped, int priority, BOOL secondary)
Hash
0x70033C3CC29A1FF4

Open in the interactive natives reference