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

Function

engineLoadTXD

Loads a resource .txd file with textures for engineImportTXD and engineLoadDFF. Another path means a texture as an engine asset.

Syntax

txd engineLoadTXD(string txdFile [, int modelID])

Arguments

txdFilestring
The .txd file.
modelIDint, optional
Model number.Different type in MTA:SA: bool filteringEnabled = true

Differences from MTA:SA

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

In MTA:SA

engineLoadTXD(string filePath/rawData, bool filteringEnabled = true)

Returns

The textures or false.

Example

local txd = engineLoadTXD("modele/auto.txd")

See also