Hello, when I set a anim if the player is cuffed, we can see him cuffed and when he moved the animation is automatically cancel, can someone help me please ?
if IsHandcuffed then
while not HasAnimDictLoaded('mp_arresting') do
local myPed = PlayerPedId(-1)
local animation = 'idle'
local flags = 16
while(IsPedBeingStunned(myPed, 0)) do
TaskPlayAnim(myPed, 'mp_arresting', animation, 8.0, -8, -1, flags, 0, 0, 0, 0)