element.type: Difference between revisions
m (Mex moved page Element.type to element.type) |
No edit summary |
||
Line 6: | Line 6: | ||
|returnTypes = int | |returnTypes = int | ||
|readonly = true | |readonly = true | ||
|usage = fetch | |usage = fetch an int containing all [[Shared/Defines/ElementTypes|type]]'s for the element, that is, the derived type along with all base types too.<br>To check if an element is of a derived type, use [[element.isType|element.isType]] with ELEMENT_* defines, because element.type will contain multiple ELEMENT_* define values. | ||
|returnInfo = the [[Shared/Defines/ElementTypes|type]] of the element | |returnInfo = the [[Shared/Defines/ElementTypes|type]] of the element | ||
}} | }} |
Revision as of 23:18, 5 January 2023
Property
Server and Client
Online and Offline
Read-Only
int element.type
To check if an element is of a derived type, use element.isType with ELEMENT_* defines, because element.type will contain multiple ELEMENT_* define values.
Value
int | The type of the element. |
readonly | This property cannot be changed. |
Types
Shared
BlipShared
BuildingShared
ElementShared
EntityShared
MarkerShared
ObjectShared
PedShared
PhysicalShared
PlayerShared
Vehicle
Notes
There aren't any notes for this property.
Examples
There aren't any examples for this property.
Compatibility
There isn't any compatibility information for this property.
Related
Server Related
destroyElement
getElementCount
getElementFromId
getElementFromName
getElements
getElementsByType
element.children
element.clearExistsFor
element.dimension
element.existsFor
element.getData
element.getRotation
element.id
element.isCreatedFor
element.isLocal
element.isOwner
element.isSyncer
element.isType
element.name
element.netFlags
element.parent
element.position
element.removeAllData
element.removeData
element.resource
element.rotation
element.setData
element.setExistsFor
element.setRotation
element.setSyncer
element.streamInDistance
element.streamOutDistance
element.syncer
element.syncerId
element.type
Client Related
destroyElement
getElementCount
getElementFromId
getElementFromName
getElements
getElementsByType
element.children
element.clearExistsFor
element.dimension
element.existsFor
element.getData
element.getRotation
element.id
element.isCreatedFor
element.isLocal
element.isOwner
element.isSyncer
element.isType
element.name
element.netFlags
element.parent
element.position
element.removeAllData
element.removeData
element.resource
element.rotation
element.setData
element.setExistsFor
element.setRotation
element.setSyncer
element.streamInDistance
element.streamOutDistance
element.syncer
element.syncerId
element.type