(Original)
setTimer(function()
Anim,_ = getPedAnimation(getLocalPlayer());
if (Anim) then
setPedAnimation(getLocalPlayer(), false);
end
end, 2000, 0);
This script stops all animations after 2 seconds. I want it to only stop one certain animation.
I do not have any experience with lua so I have no idea on what to do. This is my idea and maybe someone
that knows lua could fix the syntax or make a script just like this. \/
(changes on line 3 from original)
setTimer(function()
Anim,_ = getPedAnimation(getLocalPlayer());
if (Anim) == (AnimationIWantTostop) then
setPedAnimation(getLocalPlayer(), false);
end
end, 2000, 0);
Thanks !