Garry's Mod Wiki

Revision Difference

net.Start#527654

<function name="Start" parent="net" type="libraryfunc"> <description> Begins a new net message. If another net message is already started and hasn't been sent yet, it will be discarded. <warning>Each net message has a length limit of 64KB!</warning> <warning>The message name must be pooled with <page>util.AddNetworkString</page> beforehand!</warning> ⤶ <warning>Net messages will not reliably reach the client until the client's <page>GM:InitPostEntity</page> hook is called.</warning>⤶ ⤶ ⤶ </description> <realm>Shared</realm> <args> <arg name="messageName" type="string">The name of the message to send</arg> <arg name="unreliable" type="boolean" default="false">If set to true, the message is not guaranteed to reach its destination</arg> </args> <rets> <ret name="" type="boolean">True if the message has been started.</ret> </rets> </function>