Garry's Mod Wiki

util.Compress

  string util.Compress( string str )

Description

Compresses the given string using the LZMA algorithm.

Use with net.WriteData and net.ReadData for networking and util.Decompress to decompress the data.

Arguments

1 string str
String to compress.

Returns

1 string
The compressed string, or nil if the input string was zero length ("").