- Documentation
- Server functions
- getElementSyncer
Function
getElementSyncer
Returns the player who computes the element's physics (vehicle, object, ped) and sends its state to others.
Syntax
player getElementSyncer(element theElement)Arguments
theElementelement- The element.
Returns
The player or false.
Example
local syncer = getElementSyncer(vehicle)
outputServerLog("Auto liczy: " .. (syncer and getPlayerName(syncer) or "nikt"))