GetGravity
Description:
Function GetGravity get the currently set gravity.
This function is not defined by default. Add 'native Float:GetGravity();' under the inclusion of a_samp.inc to use it. |
Parameters:
(This function has no parameters.)
Return Values:
The current set gravity (as a float).
Examples:
#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.