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

Function

createColCircle

Server and clientCollision shapesIdentical to MTA:SA

Creates a circle-shaped collision zone on the map - with no height limit (it covers everything above and below the circle).

Syntax

colshape createColCircle(float fX, float fY, float radius)

Arguments

fXfloat
Centre X.
fYfloat
Centre Y.
radiusfloat
Radius in metres.

Returns

The new zone.

Example

local area = createColCircle(2495, -1665, 50)
addEventHandler("onColShapeLeave", area, function(element)
    if getElementType(element) == "player" then outputChatBox("Opusciles teren", element) end
end)

See also