1.7 KiB
1.7 KiB
Table: globals
Table containing functions for manipulating gta script globals.
Functions (7)
get_int(global)
Retrieves an int global value.
-
Parameters:
global
(integer): index of the global
-
Returns:
integer
: value of the global
Exemple Usage:
integer = globals.get_int(global)
get_float(global)
Retrieves a float global value.
-
Parameters:
global
(integer): index of the global
-
Returns:
float
: value of the global
Exemple Usage:
float = globals.get_float(global)
get_string(global)
Retrieves a string global value.
-
Parameters:
global
(integer): index of the global
-
Returns:
string
: value of the global
Exemple Usage:
string = globals.get_string(global)
set_int(global, val)
Sets an int global value.
- Parameters:
global
(integer): index of the globalval
(integer): new value for the global
Exemple Usage:
globals.set_int(global, val)
set_float(global, val)
Sets a float global value.
- Parameters:
global
(integer): index of the globalval
(float): new value for the global
Exemple Usage:
globals.set_float(global, val)
set_string(global, str)
Sets a string global value.
- Parameters:
global
(integer): index of the globalstr
(string): new value for the global
Exemple Usage:
globals.set_string(global, str)
get_pointer(global)
Retrieves a pointer global.
-
Parameters:
global
(integer): index of the global
-
Returns:
pointer
: value of the global
Exemple Usage:
pointer = globals.get_pointer(global)