engineImportTXD | Multi Theft Auto: Wiki Skip to content

engineImportTXD

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function imports (adds) a loaded RenderWare Texture Dictionary into a specific model. This is necessary in order for the DFF loader to find any new textures. Please call this function before loading the DFF model file, in order to allow the DFF loading process to find the new textures. This function can also replace default GTA textures, so that it becomes possible to e.g. put custom images on existing billboards. Ped and weapon textures are also supported.

Note

CJ clothing component textures can be replaced by using the IDs listed in the Clothing Component IDs article.

Note

Follow loading order ( COL -> TXD -> DFF ) which is used in the example - as other orders can cause collisions, textures or the DFF not to load due to technical limitations.

Tip

Do your TXD files take megabytes of disk space? You can read some tips on reducing the size of TXD files to compress them without ruining texture quality.

Syntax

engineImportTXD ( )

Code Examples

Script Example Missing

Function engineImportTXD needs a script example. Help out by writing one.

Contribution guidelines

See Also

Engine Functions
Engine Elements