Garry's Mod Wiki

net.ReadInt

  number net.ReadInt( number bitCount )

Description

Reads an integer from the received net message.

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

Arguments

1 number bitCount
The amount of bits to be read.

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

Returns

1 number
The read integer number, or 0 if no integer could be read.