Garry's Mod Wiki

net.ReadType

  any net.ReadType( number typeID = net.ReadUInt(8) )

Description

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

Reads a value from the net message with the specified type, written by net.WriteType.

You must read information in same order as you write it.

Arguments

1 number typeID = net.ReadUInt(8)
The type of value to be read, using TYPE enum.

Returns

1 any
The value, or the respective blank value based on the type you're reading if the value could not be read.