GetGravity

From SA-MP Wiki

Jump to: navigation, search


Description:

Get the currently set gravity.


Image:32px-Circle-style-warning.png

Important
Note

This function is not defined by default. Add 'native 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).


Example Usage:

#if !defined GetGravity
    native 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.

Personal tools
In other languages