element.getData

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

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

var element.getData(string dataName)

Description

The element.getData method is used to get the value stored by Element::setData, referenced by string.

Parameters

Type Name Presence Default Value Description
string dataName required n/a The string name for the data.

Returns

Success Returns

Type Description
var The value for the string name.

Failure Returns

Type Value
null n/a

Types

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

Notes

  • The values stored by Element::setData and retrieved by Element::getData can be one of several types (integer, string, bool, etc).

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