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

Function

getElementColShape

ServerElementsIdentical to MTA:SA

Returns the collision shape assigned to a marker or pickup.

Syntax

colshape getElementColShape(element theElement)

Arguments

theElementelement
A marker or pickup.

Returns

The shape or false.

Example

local shape = getElementColShape(marker)
if shape then
    outputServerLog("W znaczniku: " .. #getElementsWithinColShape(shape, "player"))
end

See also