Garry's Mod Wiki

net.Incoming

  net.Incoming( number length, Player client )

Description

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.

Arguments

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.