- Documentation
- Server functions
- getPedGravity
Function
getPedGravity
Returns the ped gravity stored with setPedGravity (0.008 by default).
Syntax
float getPedGravity(ped ped)Arguments
pedped- A player or an NPC.
Returns
The ped's gravity.
Example
outputServerLog(getPedGravity(player))
See also
setPedGravityStores the gravity of a single ped (0.008 by default, the same as world gravity). In Trilogy Hub this is state for scripts returned bygetPedGravity; only the whole world's gravity set withsetGravityaffects how peds move.getGravityReturns the world gravity strength (0.008 by default).