element.resource

From GTA Connected
Jump to navigation Jump to search

Property Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read and Set

Available since Server 1.0.0
The element.resource property is used to fetch or set the resource for the element.

Usage

The element.resource property is used via OOP, on types:

Shared Blip
Client Building
Client Civilian
Shared Element
Shared Entity
Client Marker
Client Object
Client Ped
Shared Physical
Client Player
Shared Transformable
Shared Vehicle

element Object Userdata type in Lua and Squirrel, or Object type in JS.
resource Property Properties use the dot "." operator in JS, Lua, and Squirrel.

Value

Resource The Resource handle for the element.
read/set This property can be changed, as well as read.

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png destroyElement
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getElementFromId
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getElementFromName
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getElementsByType

icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.children
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.dimension
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.getData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.id
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.isLocal
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.isOwner
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.isSyncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.isType
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.onAllDimensions
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.owner
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.parent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.removeAllData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.removeData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.resource
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.setData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.setSyncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.syncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png element.type