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

Function

createColRectangle

Server and clientCollision shapesIdentical to MTA:SA

Creates a rectangular collision zone from the corner (x, y) - with no height limit. The size is given in metres along X and Y.

Syntax

colshape createColRectangle(float fX, float fY, float fWidth, float fHeight)

Arguments

fXfloat
Corner X (lowest X).
fYfloat
Corner Y (lowest Y).
fWidthfloat
Size along X.
fHeightfloat
Size along Y.

Returns

The new zone.

Example

local parking = createColRectangle(2480, -1680, 30, 20)

See also