TaskPlayAnimAdvanced — FiveM Natives
0x83CDB10EA29B370B · TASK · all
Similar in functionality to TASK_PLAY_ANIM, except the position and rotation parameters let you specify the initial position and rotation of the task. The ped is teleported to the position specified. Animations list
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped you want to play the animation |
| animDictionary | char* | The animation dictionary |
| animationName | char* | The animation name |
| posX | float | Initial X position of the task |
| posY | float | Initial Y position of the task |
| posZ | float | Initial Z position of the task |
| rotX | float | Initial X rotation of the task |
| rotY | float | Initial Y rotation of the task |
| rotZ | float | Initial Z rotation of the task |
| blendInSpeed | float | The speed at which the animation blends in. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant |
| blendOutSpeed | float | The speed at which the animation blends out. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant |
| duration | int | The duration of the animation in milliseconds. -1 will play the animation until canceled |
| flag | Any |