ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedGravity

Function

getPedGravity

ServerPedsIdentical to MTA:SA

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