Garry's Mod Wiki

net.BytesWritten

  number, number net.BytesWritten()

Description

Returns the size of the current message.

This will include 3 extra bytes (24 bits) used by the engine internally to send the data over the network.

Returns

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