-
Notifications
You must be signed in to change notification settings - Fork 0
Networking.SendTable
OliverF edited this page Jun 12, 2014
·
4 revisions
Sends the specified Lua table to all remote clients. On the RSAS client, the message is sent to the RSAS server. On the RSAS server, the message is sent to all connected RSAS clients.
nil RSAS.Networking.SendTable(string id, table data)
- nil
-
string
id
Identification string for this message. Must be used by the remote client to receive the message. -
table
data
Data table to send to the remote client. The table can contain any data type, including other tables.
local data = {}
data.animal = "cat"
data.tail = true
data.legs = 7
--create a sub-table
local catIdentity = {}
catIdentity.name = "Tom"
catIdentity.type = "tabby"
--add sub-table to data table
data.identity = catIdentity
RSAS.Networking.SendTable("demo_newanimal", data)