Colshapes::newRectangle

From RAGE Multiplayer Wiki
Revision as of 12:58, 20 October 2020 by Graber (talk | contribs) (Add missing dimension optional parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates a rectangle (square) ColShape 2D plane

Parameters

  • x: Number in float
  • y: Number in float
  • width: Number in float
  • height: Number in float
  • dimension: Number (optional)

Syntax

Shared
mp.colshapes.newRectangle(x, y, width, height, dimension)

See Also