Garry's Mod Wiki

Revision Difference

net.Receivers#546300

<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. This is NOT a function, it's a table used internally by the net library to store net recievers added with <page>net.Receive</page>. The key is the lowercase net message name and the value is the message'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> <description>Disables a net message by removing its function in <page>net.Receivers</page>.</description> <code> function net.Remove(name) net.Receivers[name] = nil end </code> </example>