xXGhostXx Posted October 4, 2019 Share Posted October 4, 2019 Hi guys. What is problem in my codes ? Animation repeated but i want dont repeated ! setPedAnimation(source,"shop","smoke_ryd",-1,true, false, false, false) Link to comment
Addlibs Posted October 4, 2019 Share Posted October 4, 2019 (edited) The 5th argument is a bool indicating whether to loop or not. Change it to false and it won't loop (repeat) setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false) Edited October 4, 2019 by MrTasty Link to comment
xXGhostXx Posted October 4, 2019 Author Share Posted October 4, 2019 38 minutes ago, MrTasty said: The 5th argument is a bool indicating whether to loop or not. Change it to false and it won't loop (repeat) setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false) You can give me code ? Link to comment
Addlibs Posted October 4, 2019 Share Posted October 4, 2019 Do you perhaps have a problem with counting? What's so hard in changing a true to a false? setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false) -- ^^^^ change this into a false Link to comment
xXGhostXx Posted October 4, 2019 Author Share Posted October 4, 2019 8 minutes ago, MrTasty said: Do you perhaps have a problem with counting? What's so hard in changing a true to a false? setPedAnimation(source, "shop", "smoke_ryd", -1, true, false, false, false) -- ^^^^ change this into a false Dear thanks but i want don't repeated animation but this just stop animation after 1 play animation : sit setPedAnimation(thePlayer,"sunbathe","parksit_w_in",-1,false, false, false, false) Link to comment
Addlibs Posted October 4, 2019 Share Posted October 4, 2019 So what do you want? Non-repeated but freezing at last frame? setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, false) -- ^^^^^ loop ^^^^^ freeze at last frame -- this one will not loop and will freeze at last frame: setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, true) 1 Link to comment
xXGhostXx Posted October 5, 2019 Author Share Posted October 5, 2019 7 hours ago, MrTasty said: So what do you want? Non-repeated but freezing at last frame? setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, false) -- ^^^^^ loop ^^^^^ freeze at last frame -- this one will not loop and will freeze at last frame: setPedAnimation(thePlayer, "sunbathe", "parksit_w_in", -1, false, false, false, true) Thanks for your help Link to comment
BRUYNO46646 Posted October 9, 2019 Share Posted October 9, 2019 (edited) Em 10/04/2019 às 12:30, xXGhostXx disse: alguem pode me ajudar a criar comandos do painel p para chat? script de uso de comandos no chat Edited October 9, 2019 by BRUYNO46646 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