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

Function

getColShapeType

Server and clientCollision shapesIdentical to MTA:SA

Returns the collision zone type. On the client a number: 0 circle, 1 cuboid (also createColBox/createColCube), 2 sphere, 3 rectangle, 4 polygon, 5 tube. On the server a name: "circle", "cuboid", "sphere", "rectangle", "polygon", "tube".

Syntax

int/string getColShapeType(colshape shape)

Arguments

shapecolshape
The zone.

Returns

The zone type, or false.

Example

local zone = createColSphere(0, 0, 0, 5)
outputDebugString(tostring(getColShapeType(zone)))

See also