Garry's Mod Wiki

net.WriteTable

net.WriteTable( table table )

Description

Appends a table to the current net message. Adds 16 extra bits per key/value pair so you're better off writing each individual key/value as the exact type if possible.

All net messages have a 64kb buffer. This function will not check or error when that buffer is overflown. You might want to consider using util.TableToJSON and util.Compress and send the resulting string in 60kb chunks, doing the opposite on the receiving end.

Arguments

1 table table
The table to be sent.

If the table contains a nil key the table may not be read correctly.

Not all objects can be sent over the network. Things like functions, IMaterials, etc will cause errors when reading the table from a net message.

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 12
Render Body 0
Render Sidebar 12