Garry's Mod Wiki


SetGlobalInt( string index, number value )


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

Running this function clientside will only set it clientside for the client it is called on!
This function will not round decimal values as it actually networks a float internally.

Issue Tracker: 3374


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


Sets the current round number.

SetGlobalInt("RoundNumber", 4)

Page Links

Special Pages



Render Time: 269ms

DB GetPage 72
Generate Html 3
SaveChanges (1) 175
Render Body 0
Render Sidebar 17