client.setData

Method Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

void client.setData(string key, mixed value)

The client.setData method is used to set custom data associated with a specified key for a client.

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.

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