Garry's Mod Wiki

net.Receivers

  table net.Receivers

Description

This is used internally - although you're able to use it you probably shouldn't.

This is NOT a function, it's a table used internally by the net library to store net receivers added with net.Receive.

The key is the lowercase net message name and the value is the message's callback function.

Modifying net.Receivers won't affect the net string pool used in util.AddNetworkString.

Returns

1 table
The list of all registered derma controls.

Example

Disables a net message by removing its function in net.Receivers.

function net.Remove( name ) net.Receivers[ name ] = nil end