The table of the currently active gamemode, outside the gamemode files.
Same as GAMEMODE, but only exists gamemode files. (gamemodes/<gamemodeName>/gamemode/*.lua)
Similar to GM, but for Scripted Entities. Exists only in the files defining the entity. (lua/entities/*.lua)
Similar to ENT, but for Scripted Weapons. Exists only in the files defining the weapon. (lua/weapons/*.lua)
Similar to ENT, but for Scripted Effects. Exists only in the files defining the effect. (lua/effects/*.lua)
This table contains all global objects, including itself.
Contains a list all modules loaded from /modules/.
This is true whenever the current script is executed on the client. ( client and menu states ) See States.
This is true whenever the current script is executed on the client state. See States.
This is true whenever the current script is executed on the server state. See States.
This is true whenever the current script is executed on the server state.
This is true when the script is being executed in the menu state. See States.
Contains the name of the current active gamemode
Represents a non existent entity
Returns the version number of GMod.
Returns a nicely formatted version of GMod.
Returns the branch the game is running on.
Current Lua version. This returns "Lua 5.1" in GMod at the moment.
Shortcut pointers to important clientside objects.
|g_SkyPaint||The active env_skypaint entity. (View Source)|
|g_ContextMenu||Base panel used for context menus. (View Source)|
|g_VoicePanelList||Base panel for displaying incoming/outgoing voice messages. (View Source)|
|g_SpawnMenu||Base panel for the spawn menu. (View Source)|
vector_origin = Vector( 0, 0, 0 ) vector_up = Vector( 0, 0, 1 ) angle_zero = Angle( 0, 0, 0 ) color_white = Color( 255, 255, 255, 255 ) color_black = Color( 0, 0, 0, 255 ) color_transparent = Color( 255, 255, 255, 0 )
Almost all enumerations are globals. View them here Category:Enumerations