Garry's Mod Wiki

net.Start

net.Start

  boolean net.Start( string messageName, boolean unreliable = false )

Description

Begins a new net message. If another net message is already started and hasn't been sent yet, it will be discarded.

Each net message has a length limit of 65,533 bytes (approximately 64 KiB) and your net message will error and fail to send if it is larger than this.
The message name must be pooled with util.AddNetworkString beforehand!
Net messages will not reliably reach the client until the client's GM:InitPostEntity hook is called.

Arguments

1 string messageName
The name of the message to send
2 boolean unreliable = false
If set to true, the message is not guaranteed to reach its destination

Returns

1 boolean
True if the message has been started.

Special Pages


Wikis

?

Render Time: 56ms

DB GetPage 29
Generate Html 7
SaveChanges (1) 11
Render Body 0
Render Sidebar 7