- Documentation
- Server functions
- setElementSyncer
Function
setElementSyncer
Chooses the player who computes the element's physics. true or nil restores automatic choice.
Syntax
bool setElementSyncer(element theElement, player thePlayer)Arguments
theElementelement- The element.
thePlayerplayer- A player or
true/nil.
Differences from MTA:SA
- These MTA:SA arguments are not here:
bool persist = false
In MTA:SA
setElementSyncer(element theElement, player thePlayer, bool persist = false)Returns
true on success.
Example
setElementSyncer(trailer, driver)