ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isElementWithinMarker

Function

isElementWithinMarker

Server and clientElementsIdentical to MTA:SA

Checks whether an element is inside a marker.

Syntax

bool isElementWithinMarker(element theElement, marker theMarker)

Arguments

theElementelement
The element.
theMarkermarker
The marker.

Returns

true if inside.

Example

bindKey(player, "e", "down", function(p)
    if isElementWithinMarker(p, bankMarker) then
        outputChatBox("Witaj w banku!", p)
    end
end)