Garry's Mod Wiki

GetGlobalVar

  any GetGlobalVar( string index, any default = nil )

Description

Returns a value that is shared between the server and all clients.

Arguments

1 string index
The unique index to identify the global value with.
2 any default = nil
The value to return if the global value is not set.

Returns

1 any
The global value, or the default if the global value is not set.