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

Function

engineLoadDFF

Loads a model from a resource .dff file (like engineLoadMesh). It takes textures from a .txd assigned earlier with engineImportTXD for that number or from a .txd with the same name. A path other than a .dff file means an engine asset.

Syntax

mesh engineLoadDFF(string dffFile [, int modelID])

Arguments

dffFilestring
The .dff file.
modelIDint, optional
Model number (for textures).Not in MTA:SA

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

engineLoadDFF(string filePath/rawData)

Returns

The model or false.

Example

local txd = engineLoadTXD("modele/auto.txd")
engineImportTXD(txd, 411)
local dff = engineLoadDFF("modele/auto.dff", 411)
engineReplaceModel(dff, 411)

See also