- Documentation
- Server functions
- isInsideRadarArea
Function
isInsideRadarArea
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