playEntityScriptedAnim
PLAY_ENTITY_SCRIPTED_ANIM0x77A1EEC547E7FCF1The 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.
playEntityScriptedAnim(
entity: Entity,
priorityLowData: ScriptedAnimSlot,
priorityMidData: ScriptedAnimSlot,
priorityHighData: ScriptedAnimSlot,
blendInDelta: number,
blendOutDelta: number
): voidplayEntityScriptedAnim(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
priorityLowData | ScriptedAnimSlot | ScriptedAnimSlot | table |
priorityMidData | ScriptedAnimSlot | ScriptedAnimSlot | table |
priorityHighData | ScriptedAnimSlot | ScriptedAnimSlot | table |
blendInDelta | float | number | number |
blendOutDelta | float | number | number |
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