GetGravity

Tags:

Description

Get the currently set gravity.

Name Description

Examples

#if !defined GetGravity
    native Float:GetGravity();
#endif

printf("Current gravity: %f", GetGravity());

Notes

WARNING

This function is not defined by default. Add 'native Float:GetGravity();' under the inclusion of a_samp.inc to use it.

  • SetGravity: Set the global gravity.