client.getData

From GTA Connected
(Redirected from Client.getData)
Jump to navigation Jump to search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

mixed client.getData(string key)

Description

The client.getData method is used to fetch custom data associated with a specified key for a client.

Parameters

Type Name Presence Default Value Description
string key required n/a The string name of the data to fetch the value for.

Returns

Success Returns

Type Description
mixed The custom data associated with the specified key for the client.

Failure Returns

Type Value
null n/a

Types

This method can only be used on the Client type.

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

client.administrator
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

getClientFromPlayerElement
getClients
localClient

client.game
client.getData
client.index
client.name
client.player
client.removeAllData
client.removeData
client.setData