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

Event

onPlayerMarkerHit

ServerMarkersIdentical to MTA:SA

A player entered a marker (the version from the player side).

Handler

addEventHandler("onPlayerMarkerHit", root, function(markerHit, matchingDimension) ... end)

Parameters

markerHitmarker
The marker.
matchingDimensionbool
Whether in the same dimension.

Source

source is the player.

Example

addEventHandler("onPlayerMarkerHit", root, function(marker, dim)
    if dim and getElementData(marker, "meta") then outputChatBox("Meta!", source) end
end)

See also