client.setData
Method Server and Client 
 
 
 ![]()
Online and Offline
void client.setData(string key, mixed value, bool syncWithClientsNow)
Parameters
| 1) | string | key | The string name of the data to be set for the client. | 
| 2) | mixed | value | The value of the data to be set for the client. | 
| 3) | bool | syncWithClientsNow | Whether the data is sent to clients immediately. Note that all element data will be sent to a client when the element streams in. This argument only applies when the method is used.  | 
Return
| void | This method doesn't return a value. | 
Types
Shared Client
Notes
There aren't any notes for this method.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.
Related
Server Related
 
 
 
 getClient
 
 
 
 getClientFromPlayerElement
 
 
 
 getClients
 
 
 
 localClient
 
 
 
 client.administrator
 
 
 
 client.cameraInterior
 
 
 
 client.console
 
 
 
 client.despawnPlayer
 
 
 
 client.disconnect
 
 
 
 client.game
 
 
 
 client.gameVersion
 
 
 
 client.getData
 
 
 
 client.index
 
 
 
 client.ip
 
 
 
 client.name
 
 
 
 client.ping
 
 
 
 client.player
 
 
 
 client.removeAllData
 
 
 
 client.removeData
 
 
 
 client.setData
Client Related
 
 
 
 getClient
 
 
 
 getClientFromPlayerElement
 
 
 
 getClients
 
 
 
 localClient
 
 
 
 client.administrator
 
 
 
 client.console
 
 
 
 client.despawnPlayer
 
 
 
 client.disconnect
 
 
 
 client.game
 
 
 
 client.gameVersion
 
 
 
 client.getData
 
 
 
 client.index
 
 
 
 client.ip
 
 
 
 client.name
 
 
 
 client.ping
 
 
 
 client.player
 
 
 
 client.removeAllData
 
 
 
 client.removeData
 
 
 
 client.setData