wonder if anyone can help im looking in to looping the f3 animation but unsure how ??
TaskPlayAnim(GetPlayerPed(-1), lib ,anim ,8.0, -8.0, -1, 0, 0, false, false, false )
do I edit the 8.0 ??
wonder if anyone can help im looking in to looping the f3 animation but unsure how ??
TaskPlayAnim(GetPlayerPed(-1), lib ,anim ,8.0, -8.0, -1, 0, 0, false, false, false )
do I edit the 8.0 ??
You need to take a look at the flag argument, you can find some documentation here : https://runtime.fivem.net/doc/natives/#_0xEA47FE3719165B94
In fact, it tells you that using an odd number would make the animation loop definitely.
For instance you could use 1 instead of 0.
so like this
TaskPlayAnim(GetPlayerPed(-1), lib ,anim ,8.0, -8.0, -1, 1, 1, false, false, false )
befor
TaskPlayAnim(GetPlayerPed(-1), lib ,anim , 8.0, -8.0, -1, 0, 0, false, false, false )
Yes just try if that works
thank you works perfect