Colshapes::newRectangle: Difference between revisions
MrPancakers (talk | contribs) m (Switched from server side to shared) |
(Add missing dimension optional parameter) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
Creates a rectangle (square) ColShape 2D plane | |||
==Parameters== | ==Parameters== | ||
* '''x: | * '''x:''' {{RageType|Number}} in float | ||
* '''y: | * '''y:''' {{RageType|Number}} in float | ||
* '''width: | * '''width:''' {{RageType|Number}} in float | ||
* '''height: | * '''height:''' {{RageType|Number}} in float | ||
* '''dimension:''' {{RageType|Number}} (optional) | |||
==Syntax== | ==Syntax== | ||
{{Shared}} | {{Shared}} | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.colshapes.newRectangle(x, y, width, height) | mp.colshapes.newRectangle(x, y, width, height, dimension) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Colshapes_function}} | {{Colshapes_function}} | ||
[[Category:ColShape API]] | |||
[[Category:Shared Function]] | |||
Latest revision as of 12:58, 20 October 2020
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
- Functions
- Properties
- Arrays
- Functions