getColShapeSize | Multi Theft Auto: Wiki Skip to content

getColShapeSize

Client-side
Server-side
Shared

Pair: setColShapeSize

This function is used to get the size of a colshape. Valid types are rectangle, cuboid and tube.

OOP Syntax Help! I don't understand this!

Syntax

float|false,​ float,​ float getColShapeSize ( colshape shape )
Required Arguments
  • shape: The colshape you wish to get the size of.

Returns

  • float|false: x
  • float: y
  • float: z

Returns up to 3 floats depending on the colshape type (see below), false if invalid arguments were passed.

  • cuboid: width, depth, height
  • rectangle: width, depth
  • tube: height

Code Examples

Script Example Missing

Function getColShapeSize needs a script example. Help out by writing one.

Contribution guidelines