Garry's Mod Wiki

net.BytesLeft

  number, number net.BytesLeft()

Description

Returns the amount of data left to read in the current message. Does nothing when sending data.

Returns

1 number
The amount of data left to read in the current net message in bytes. Returns nil if no net message has been started.
2 number
The amount of data left to read in the current net message in bits. Returns nil if no net message has been started.