Colshape::shapeType: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Returns type of colshape. ==Available types:== *cuboid *circle *sphere *tube *rectangle ==Getter== * '''<span style="color:#008017">String</span>''' == Example == <div clas...")
 
m (Added the colshape function block)
Line 24: Line 24:


==See Also==
==See Also==
{{Entity_block}}
{{Colshapes_function}}

Revision as of 06:19, 10 May 2018

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