ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getElementSyncer

Function

getElementSyncer

ServerElementsIdentical to MTA:SA

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"))

See also