Garry's Mod Wiki

Garry's Mod Wiki

  number, number net.BytesLeft()

Description

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

This will include 6 extra bits (or 1 byte rounded-up) used by the engine internally.

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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...