{"hash":"0x3DDEB0E6","ns":"CFX","name":"TASK_PLAY_ANIM_ADVANCED","slug":"TASK_PLAY_ANIM_ADVANCED","official":true,"named":true,"luaName":"TaskPlayAnimAdvanced","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped","description":"The ped you want to play the animation"},{"name":"animDictionary","type":"char*","description":"The animation dictionary"},{"name":"animationName","type":"char*","description":"The animation name"},{"name":"posX","type":"float","description":"Initial X position of the task"},{"name":"posY","type":"float","description":"Initial Y position of the task"},{"name":"posZ","type":"float","description":"Initial Z position of the task"},{"name":"rotX","type":"float","description":"Initial X rotation of the task"},{"name":"rotY","type":"float","description":"Initial Y rotation of the task"},{"name":"rotZ","type":"float","description":"Initial Z rotation of the task"},{"name":"blendInSpeed","type":"float","description":"The speed at which the animation blends in. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant"},{"name":"blendOutSpeed","type":"float","description":"The speed at which the animation blends out. Lower is slower and higher is faster, 1.0 is normal, 8.0 is basically instant"},{"name":"duration","type":"int","description":"The duration of the animation in milliseconds. -1 will play the animation until canceled"},{"name":"flag","type":"Any","description":"See [`TASK_PLAY_ANIM`](#\\_0xEA47FE3719165B94)"},{"name":"animTime","type":"float","description":"Value between 0.0 and 1.0, lets you start an animation from the given point"},{"name":"p14","type":"Any"},{"name":"p15","type":"Any"}],"summary":"Similar in functionality to TASK_PLAY_ANIM, except the position and rotation parameters let you specify the initial position and rotation of the task.","descriptions":[{"source":"cfx","format":"md","body":"Similar in functionality to [`TASK_PLAY_ANIM`](#\\_0xEA47FE3719165B94), 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.\n[Animations list](https://alexguirre.github.io/animations-list/)\n\n**This is the server-side RPC native equivalent of the client native [TASK_PLAY_ANIM_ADVANCED](?\\_0x83CDB10EA29B370B).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/TASK_PLAY_ANIM_ADVANCED","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/TASK_PLAY_ANIM_ADVANCED.md","snippets":{"lua":"TaskPlayAnimAdvanced(ped, animDictionary, animationName, posX, posY, posZ, rotX, rotY, rotZ, blendInSpeed, blendOutSpeed, duration, flag, animTime, p14, p15)","luaInvoke":"Citizen.InvokeNative(0x3ddeb0e6, ped, animDictionary, animationName, posX, posY, posZ, rotX, rotY, rotZ, blendInSpeed, blendOutSpeed, duration, flag, animTime, p14, p15)","js":"TaskPlayAnimAdvanced(ped, animDictionary, animationName, posX, posY, posZ, rotX, rotY, rotZ, blendInSpeed, blendOutSpeed, duration, flag, animTime, p14, p15);","jsInvoke":"Citizen.invokeNative('0x3ddeb0e6', ped, animDictionary, animationName, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, blendInSpeed + 0.0000001, blendOutSpeed + 0.0000001, duration, flag, animTime + 0.0000001, p14, p15);","csharp":"Function.Call((Hash)0x3ddeb0e6, ped, animDictionary, animationName, posX, posY, posZ, rotX, rotY, rotZ, blendInSpeed, blendOutSpeed, duration, flag, animTime, p14, p15);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}