Garry's Mod Wiki


  number net.ReadUInt( number bitCount )


Reads an unsigned integer with the specified number of bits from the received net message.

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


1 number bitCount
The size of the integer to be read, in bits.

This must be set to what you set to net.WriteUInt. Read more information at net.WriteUInt.


1 number
The unsigned integer read, or 0 if the integer could not be read.