Colshapes::newRectangle: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Creating colshape, square in 2D plane ==Parameters== * '''x: <span style="color:#008017>Number</span>''' * '''y: <span style="color:#008017>Number</span>''' * '''width: <sp...")
 
No edit summary
Line 9: Line 9:
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.colshapes.newRectangle(x, y, width: number, height)
mp.colshapes.newRectangle(x, y, width, height)
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 13:10, 14 May 2017

Creating colshape, square in 2D plane

Parameters

  • x: Number
  • y: Number
  • width: Float
  • height: Float

Syntax

Server-Side
mp.colshapes.newRectangle(x, y, width, height)