Garry's Mod Wiki

SetGlobal2Int

  SetGlobal2Int( string index, number value )

Description

Sets an integer that is shared between the server and all clients.

The integer has a 32 bit limit. Use SetGlobalInt instead
Running this function clientside will only set it clientside for the client it is called on!

Arguments

1 string index
The unique index to identify the global value with.
2 number value
The value to set the global value to

Example

Sets the current number.

SetGlobal2Int("Number", 4)