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

Function

isInsideRadarArea

ServerMiscellaneousIdentical to MTA:SA

Checks whether a point (x, y) lies inside the radar area.

Syntax

bool isInsideRadarArea(radararea theArea, float posX, float posY)

Arguments

theArearadararea
The area.
posXfloat
X.
posYfloat
Y.

Returns

true when the point is inside.

Example

local x, y = getElementPosition(player)
if isInsideRadarArea(turf, x, y) then
    outputChatBox("Jesteś na terenie Grove Street.", player)
end

See also