showCol | Multi Theft Auto: Wiki Skip to content

showCol

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


Shows collision previews for developers (colshapes in wireframe, useful when writing scripts).

Note

This function only works in development mode.

Syntax

bool showCol ( bool state )
Required Arguments
  • state: A boolean indicating if the collision previews should be enabled or disabled.

Returns

  • bool: value

You can refer to the example below:

Code Examples

shared

You can refer to the example below:

setDevelopmentMode (true)
addCommandHandler ("devdebug",
function ()
showCol (not isShowCollisionsEnabled())
end
)