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

Function

getColShapeSize

ServerCollision shapesIdentical to MTA:SA

Returns the zone's dimensions depending on its shape: sphere/circle - radius; tube - radius and height; rectangle - width and length; cuboid - width, depth, height; polygon - height.

Syntax

float... getColShapeSize(colshape shape)

Arguments

shapecolshape
The zone.

Returns

The dimensions, or false.

Example

local tube = createColTube(0, 0, 0, 3, 8)
local radius, height = getColShapeSize(tube)

See also