Jump to content

[HELP] Player Gravity


Recommended Posts

Posted

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) 

Posted

The second argument of addCommandHandler should be the function not the player.

function Gravity(thePlayer) 
setPedGravity(thePlayer ,0.100) 
end 
addCommandHandler ("grav" , Gravity) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...