I know that element datas generate a lot of network traffic, but i need to sync (many) things with the clients.
Lets say that i have 20 element datas (that's not the actual number, just an example)
setElementData ( player, "data1", ... );
setElementData ( player, "data2", ... );
setElementData ( player, "data3", ... );
setElementData ( player, "data4", ... );
...
This can cause issues, but what if i do something like this:
table = {
["data1"] = "x",
["data2"] = "y";
-- etc
}
setElementData ( player, "data", toJSON ( table ) );
Is this possible ? Is it effective ? If yes there's a limit regarding the string lenght ?
Hope that someone can answer my questions