Garry's Mod Wiki

Revision Difference

Global.SetGlobal2Int#547633

<function name="SetGlobal2Int" parent="Global" type="libraryfunc"> <description> Sets an integer that is shared between the server and all clients. <note>Running this function clientside will only set it clientside for the client it is called on!</note></description> <realm>Shared</realm> <args> <arg name="index" type="string">The unique index to identify the global value with.</arg> <arg name="value" type="number">The value to set the global value to</arg> </args> </function> <example> <description>Sets the current number.</description> <code>SetGlobalInt("Number", 4)</code> </example>