H5N1 Posted October 26, 2012 Posted October 26, 2012 How to disable CJ run for player? Is it even possibile? If yes, then how?
Snaik Posted October 26, 2012 Posted October 26, 2012 Yes, you can use setControlState https://wiki.multitheftauto.com/wiki/SetControlState
H5N1 Posted October 26, 2012 Author Posted October 26, 2012 But it only set control, not walking style. Additionally, it's a little pain in the ass when you make bigger gamemode.
Snaik Posted October 26, 2012 Posted October 26, 2012 Well, toggleControl (thePlayer, "sprint", false ) will make the "thePlayer" not able to run
H5N1 Posted October 26, 2012 Author Posted October 26, 2012 Different ped models have different walking style. For example man from grove street walks differently from rich woman. You can test those walking styles in samp, but it set they as default without function for developers.
DiSaMe Posted October 26, 2012 Posted October 26, 2012 You need to detect when certain controls are pressed and use setPedAnimation to make the player perform another running animation.
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