element.setSyncer
Method
Server Only
Online and Offline
void element.setSyncer(int clientId, [ bool forced = false ])
Parameters
1) | int | clientId | The client ID to set as the syncer for the element. |
2) | bool | forced | Optional, defaults to false. Whether to override an existing internally-chosen syncer. |
Return
void | This method doesn't return a value. |
Types
Shared
BlipShared
BuildingShared
ElementShared
EntityShared
MarkerShared
ObjectShared
PedShared
PhysicalShared
PlayerShared
Vehicle
Notes
- Setting a vehicle syncer to someone besides the driver is not recommended. This will cause the car to mess up. The driver will still be able to drive but it will be very laggy as it's relayed through the syncer first.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.
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