TaskPlayAnimAdvanced — FiveM Natives
0x3DDEB0E6 · CFX · server
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 This is the server-side RPC native equivalent of the client native TASK_PLAY_ANIM_ADVANCED.
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 |