ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onMarkerLeave

Event

onMarkerLeave

ServerMarkersIdentical to MTA:SA

An element left a marker.

Handler

addEventHandler("onMarkerLeave", root, function(leftElement, matchingDimension) ... end)

Parameters

leftElementelement
The element.
matchingDimensionbool
Whether in the same dimension.

Source

source is the marker.

Example

addEventHandler("onMarkerLeave", shop, function(el)
    if getElementType(el) == "player" then outputChatBox("Do zobaczenia!", el) end
end)

See also