setAnimPhase
SET_ANIM_PHASE0xDDF3CB5A0A4C0B49The 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.
setAnimPhase(
entity: Entity,
phase: number,
priority: number,
secondary: boolean
): voidsetAnimPhase(
entity: Entity,
phase: number,
priority: integer,
secondary: boolean
)Usage
JavaScript
setAnimPhase(entity, phase, priority, secondary);Lua
setAnimPhase(entity, phase, priority, secondary)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
phase | float | number | number |
priority | int | number | integer |
secondary | BOOL | boolean | boolean |
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