net/WriteType

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added Source Link)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=WriteType
+
|Description=Appends any type of value to the current net message.
|Parent=net
+
|Description=Appends any type of value to the usermessage.
+
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
 +
|Name=WriteType
 +
|Parent=net
 
|File=lua/includes/extensions/net.lua
 
|File=lua/includes/extensions/net.lua
 
|Line=144
 
|Line=144

Revision as of 11:06, 31 January 2016

 net.WriteType( )

Description

Appends any type of value to the current net message.

Arguments

any Data

The data to be sent. A UInt(8) indicating the type will automatically be written to the packet before the value, in order to facilitate reading with net.ReadType.
Personal tools
Navigation