Garry's Mod Wiki

net.ReadHeader

  number net.ReadHeader()

Description

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

Reads a word, basically unsigned short. This is used internally to read the "header" of the message which is an unsigned short which can be converted to the corresponding message name via util.NetworkIDToString.

Returns

1 number
The header number