setColShapeSize | Multi Theft Auto: Wiki Skip to content

setColShapeSize

Client-side
Server-side
Shared

Pair: getColShapeSize

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

OOP Syntax Help! I don't understand this!

Syntax

bool setColShapeSize ( ​colshape shape, ​float a, [ ​float b = nil, ​float c = nil ] )
Required arguments
  • shape: The colshape you wish to change the size of.
  • a: width for cuboid and rectangle or height for tube.
Optional arguments

Note: when using optional arguments, you might need to supply all arguments before the one you wish to use.

Returns

Returns true if the size was changed, false if invalid arguments were passed.

  • bool: result

Code Examples

Script Example Missing

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

Contribution guidelines