Garry's Mod Wiki

Revision Difference

net.Receivers#546275

<cat>libraryfunc</cat>⤶ ⤶ # Not a function⤶ <internal></internal>⤶ ⤶ This is NOT a function, it's a table used internally by the net library and storing every net registered with <page>net.Receive</page>.⤶ ⤶ The key is the lowered net name and the value is the net's callback function.⤶ ⤶ <note>Modifying <page>net.Receivers</page> won't affect the net string pool used in <page>util.AddNetworkString</page>.</note>⤶ ⤶ <example>⤶ <description>Disables a net by removing its function in <page>net.Receivers</page>.</description>⤶ <code>⤶ function net.Remove(name)⤶ net.Receivers[name] = nil⤶ end⤶ </code>⤶ </example>