engineRestoreCOL | Multi Theft Auto: Wiki Skip to content

engineRestoreCOL

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.


This function restores the original collision model of the given model ID. Reverses the effect of engineReplaceCOL.

OOP Syntax Help! I don't understand this!

  • Method: Engine.restoreCOL(...)

Syntax

bool engineRestoreCOL ( int modelID )
Required Arguments
  • modelID: The ID of the model to restore the model of

Returns

  • bool: value

Returns true if this function succeeds, false or nil if it fails for some reason.

Code Examples

shared

Client-Side example for restoring object collision with default one.

function RestoreCollision ( )
engineRestoreCOL ( 3356 )
end
addEvent ( "collisionRestore", true )
addEventHandler ( "collisionRestore", getRootElement(), RestoreCollision )

See Also

Engine Functions
Engine Elements