element.position: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|endpoint = shared | |endpoint = shared | ||
|type = property | |type = property | ||
|class = | |class = Element | ||
|name = position | |name = position | ||
|readonly = false | |readonly = false | ||
|returnTypes = Vec3 | |returnTypes = Vec3 | ||
|usage = fetch or set the 3D position for | |usage = fetch or set the 3D position for an element | ||
|returnInfo = a Vec3 containing the position of the | |returnInfo = a Vec3 containing the position of the element | ||
|notes = Due to a sync limitation, a network event (sent to the player's client) is required to change the position of a player element. See [[triggerNetworkEvent|triggerNetworkEvent]] and [[addNetworkHandler|addNetworkHandler]] for info on using network events. | |notes = Due to a sync limitation, a network event (sent to the player's client) is required to change the position of a player element. See [[triggerNetworkEvent|triggerNetworkEvent]] and [[addNetworkHandler|addNetworkHandler]] for info on using network events. | ||
}} | }} |
Latest revision as of 15:51, 26 December 2021
Property
Server and Client
Online and Offline
Read and Set
Vec3 element.position
Value
Vec3 | A Vec3 containing the position of the element. |
read/set | This property can be changed, as well as read. |
Types
Shared
BlipShared
BuildingShared
ElementShared
EntityShared
MarkerShared
ObjectShared
PedShared
PhysicalShared
PlayerShared
Vehicle
Notes
- Due to a sync limitation, a network event (sent to the player's client) is required to change the position of a player element. See triggerNetworkEvent and addNetworkHandler for info on using network events.
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