ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineReplaceCOL

Function

engineReplaceCOL

ClientGame engineIdentical to MTA:SA

Replaces an object model's collision with one from engineLoadCOL or engineGenerateCOL (also for map objects with that number and the day/night pair model). Objects only, not peds and vehicles. If the model does not exist in the game yet (a new engineRequestModel model while the player joins or a resource restarts), the collision waits and applies as soon as the model appears; a model number that does not exist gives false.

Syntax

bool engineReplaceCOL(col theCol, int modelID)

Arguments

theColcol
The collision.
modelIDint
Object model number.

Returns

true on success.

Example

engineReplaceCOL(engineLoadCOL("modele/rampa.col"), 1634)

See also