Garry's Mod Wiki

Revision Difference

Global.SetGlobal2Int#547663

<function name="SetGlobal2Int" parent="Global" type="libraryfunc"> <description> Sets an integer that is shared between the server and all clients. <warning>The integer has a 32 bit limit. Use <page>Global.SetGlobalInt</page> for a higher limit</warning>⤶ <warning>The integer has a 32 bit limit. Use <page>Global.SetGlobalInt</page> instead</warning>⤶ <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>SetGlobal2Int("Number", 4)</code> </example>