getElementsByType

From GTA Connected
(Redirected from GetElementsByType)
Jump to navigation Jump to search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

array getElementsByType(int elementType)

Description

The getElementsByType function is used to fetch all elements of a specified type.

Parameters

Type Name Presence Default Value Description
int elementType required n/a The type of the element.

Returns

Success Returns

Type Description
array An array containing zero or more elements.

Failure Returns

Type Value
array []

Notes

  • The array syntax is: array<int index, Element element>.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

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