SkrillexX Posted June 8, 2013 Share Posted June 8, 2013 In this script the player's Gravity will change to 0.100 If he types /grav i do not know why it doesn't work . function Gravity(thePlayer) setPedGravity(thePlayer ,0.100) end addCommandHandler ("grav" ,thePlayer) Link to comment
blehmeh Posted June 8, 2013 Share Posted June 8, 2013 The second argument of addCommandHandler should be the function not the player. function Gravity(thePlayer) setPedGravity(thePlayer ,0.100) end addCommandHandler ("grav" , Gravity) 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