Garry's Mod Wiki

net.ReadString

  string net.ReadString()

Description

Reads a null-terminated string from the net stream. The size of the string is 8 bits plus 8 bits for every ASCII character in the string.

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

Returns

1 string
The read string, or a string with 0 length if no string could be read.