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

Function

createColCuboid

Server and clientCollision shapesIdentical to MTA:SA

Creates a box-shaped collision zone from the corner (x, y, z): width along X, depth along Y and height upward.

Syntax

colshape createColCuboid(float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight)

Arguments

fXfloat
Corner X.
fYfloat
Corner Y.
fZfloat
Corner Z (bottom).
fWidthfloat
Size along X.
fDepthfloat
Size along Y.
fHeightfloat
Height.

Returns

The new zone.

Example

local room = createColCuboid(2490, -1670, 12, 10, 8, 4)

See also