Garry's Mod Wiki

net.Broadcast

  net.Broadcast()

Description

Sends the currently built net message (see net.Start) to all connected players. More information can be found in Net Library Usage.

Example

Sends a packet to all players.

net.Start( "MyNetworkString" ) net.WriteString( "some text" ) net.Broadcast()