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

Function

engineLoadCOL

ClientGame engineIdentical to MTA:SA

Loads a collision from a resource file (COLL, COL2, COL3, COL4 formats; from an archive it takes the first model) or from file bytes.

Syntax

col engineLoadCOL(string colFileOrData)

Arguments

colFileOrDatastring
A .col file or its data.

Returns

The collision or false.

Example

local col = engineLoadCOL("modele/rampa.col")
if col then engineReplaceCOL(col, 1634) end

See also