Garry's Mod Wiki

net.ReadUInt

  number net.ReadUInt( number bitCount )

Description

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.

Arguments

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.

Returns

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