Colshape::shapeType: Difference between revisions
m (Replaced HTML with template) |
m (category) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 9: | Line 9: | ||
==Getter== | ==Getter== | ||
* | * {{RageType|String}} | ||
== Example == | == Example == | ||
| Line 24: | Line 24: | ||
==See Also== | ==See Also== | ||
{{Colshapes_function}} | {{Colshapes_function}} | ||
[[Category:ColShape API]] | |||
[[Category:Server-side Property]] | |||
Latest revision as of 17:08, 17 May 2019
Returns type of colshape.
Available types:
- cuboid
- circle
- sphere
- tube
- rectangle
Getter
- String
Example
Server-Side
const colshape_one = mp.colshapes.newRectangle(0, 0, 10, 10); console.log(colshape_one.shapeType); // -> 'rectangle' const colshape_two = mp.colshapes.newSphere(0, 0, 0, 10); console.log(colshape_two.shapeType); // -> 'sphere'
See Also
- Functions
- Properties
- Arrays
- Functions