Garry's Mod Wiki

net.ReadColor

  table net.ReadColor( boolean hasAlpha = true )

Description

Reads a Color from the current net message.

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

Arguments

1 boolean hasAlpha = true
If the color has alpha written or not. Must match what was given to net.WriteColor.

Returns

1 table
The Color read from the current net message, or Color( 0, 0, 0, 0 ) if the color could not be read.