SetGravity

From Multi Theft Auto: Wiki
Revision as of 17:01, 18 April 2009 by NeonBlack (talk | contribs) (Replaced player with ped. Also setPlayerGravity with setPedGravity.)
Jump to navigation Jump to search

This function sets the server's gravity level. Note that this does not effect peds/players and their vehicles; to set ped/player gravity use setPedGravity.

Syntax

setGravity ( float level )

Required Arguments

  • level: The level of gravity ( default is 0.008 )

Example

function grav ( sourcePlayer, command, level )
    setGravity ( tonumber(level) )
end
addCommandHandler ( "setgravity", grav )

See Also