GetGravity
From SA-MP Wiki
Description:
Get the currently set gravity.
Important | This function is not defined by default. Add 'native Float:GetGravity();' under the inclusion of a_samp.inc to use it. |
This function has no parameters.
Return Values:
The current set gravity (as a float).
Example Usage:
#if !defined GetGravity native Float:GetGravity(); #endif printf("Current gravity: %f", GetGravity());
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetGravity: Set the global gravity.