Garry's Mod Wiki

net.WriteBit

  net.WriteBit( boolean boolean )

Description

Appends a boolean (as 1 or 0) to the current net message.

Please note that the bit is written here from a boolean (true/false) but net.ReadBit returns a number.

Arguments

1 boolean boolean
Bit status (false = 0, true = 1).