H5N1 Posted October 26, 2012 Share Posted October 26, 2012 How to disable CJ run for player? Is it even possibile? If yes, then how? Link to comment
Snaik Posted October 26, 2012 Share Posted October 26, 2012 Yes, you can use setControlState https://wiki.multitheftauto.com/wiki/SetControlState Link to comment
H5N1 Posted October 26, 2012 Author Share 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. Link to comment
Snaik Posted October 26, 2012 Share Posted October 26, 2012 Well, toggleControl (thePlayer, "sprint", false ) will make the "thePlayer" not able to run Link to comment
H5N1 Posted October 26, 2012 Author Share Posted October 26, 2012 But that's not the point... Link to comment
H5N1 Posted October 26, 2012 Author Share 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. Link to comment
DiSaMe Posted October 26, 2012 Share Posted October 26, 2012 You need to detect when certain controls are pressed and use setPedAnimation to make the player perform another running 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