element.setData

From GTA Connected
Jump to: navigation, search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

void element.setData(string dataName, var theData, bool syncWithClients)

Description

The element.setData method is used to sets info, referenced by name.

Parameters

Type Name Presence Default Value Description
string dataName required n/a The string name of the data for the element.
var theData required n/a The data for the element, which is referenced by dataName.
bool syncWithClients required n/a Whether to sync the data with all clients.

Returns

Success Returns

Type Description
void This method doesn't return any values on success.

Failure Returns

Documentation Missing: Failure returns

Types

This method can be used on types: Blip Building Civilian Element Entity Marker Object Ped Physical Player Transformable Vehicle.

Notes

  • The third arg (syncWithClients) is not available client side.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

createElement
destroyElement
getElementFromId
getElementFromName
getElementsByType

element.children
element.dimension
element.getData
element.id
element.isType
element.name
element.onAllDimensions
element.parent
element.removeAllData
element.removeData
element.resource
element.setData
element.setSyncer
element.syncer
element.type


Client Related

createElement
destroyElement
getElementFromId
getElementFromName
getElementsByType

element.children
element.dimension
element.getData
element.id
element.isLocal
element.isSyncer
element.isType
element.name
element.parent
element.removeAllData
element.removeData
element.setData
element.syncer
element.type