Cynoq Posted December 23, 2015 Share Posted December 23, 2015 (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 ! Link to comment
#RooTs Posted December 23, 2015 Share Posted December 23, 2015 maybe look in WIKI https://wiki.multitheftauto.com/wiki/EngineUnloadIFP Link to comment
#RooTs Posted December 23, 2015 Share Posted December 23, 2015 setPedAnimation(localPlayer, "ANIMATIONBLOCK", "animation1") -- start animation setPedAnimation(localPlayer) -- stop animation Link to comment
Cynoq Posted December 23, 2015 Author Share Posted December 23, 2015 maybe look in WIKIhttps://wiki.multitheftauto.com/wiki/EngineUnloadIFP I don't understand lua, that's the thing. And I don't wanna have to learn a whole language to fix one little problem... Link to comment
#RooTs Posted December 23, 2015 Share Posted December 23, 2015 I don't understand lua, that's the thing. And I don't wanna have to learn a whole language to fix one little problem... will stay a lifetime in need of help? have to study a little too ... Link to comment
Cynoq Posted December 23, 2015 Author Share Posted December 23, 2015 I don't understand lua, that's the thing. And I don't wanna have to learn a whole language to fix one little problem... will stay a lifetime in need of help? have to study a little too ... It's not hard for someone who already knows lua to add a "if equal to" to a script c'mon, I'm not asking for much... Link to comment
#RooTs Posted December 23, 2015 Share Posted December 23, 2015 It's not hard for someone who already knows lua to add a "if equal to" to a script c'mon, I'm not asking for much... a Okay paste all code Link to comment
Cynoq Posted December 23, 2015 Author Share Posted December 23, 2015 It's not hard for someone who already knows lua to add a "if equal to" to a script c'mon, I'm not asking for much... a Okay paste all code What? The code I want fixed is at the top. Link to comment
#RooTs Posted December 23, 2015 Share Posted December 23, 2015 maybe try this if getPedAnimation(getLocalPlayer()) then setTimer(function() setPedAnimation(localPlayer) end, 2000, 0) end Link to comment
Cynoq Posted December 23, 2015 Author Share Posted December 23, 2015 maybe try this if getPedAnimation(getLocalPlayer()) then setTimer(function() setPedAnimation(localPlayer) end, 2000, 0) end Nope, doesn't stop any animation Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now