Garry's Mod Wiki


  net.Incoming( number length, Player client )


This is used internally - although you're able to use it you probably shouldn't. You may be looking for net.Receive.

Function called by the engine to tell the Lua state a message arrived.


1 number length
The message length, in bits.
2 Player client
The player that sent the message. This will be nil in the client state.