engineAddClothingTXD | Multi Theft Auto: Wiki Skip to content

engineAddClothingTXD

Client-side
Server-side
Shared

Added in 1.6.0 r23124

This function adds new CJ clothing texture.

Syntax

bool engineAddClothingTXD ( ​txd theTexture, ​string fileName )
Required Arguments
  • theTexture: The texture that will be added.
  • fileName: Name of the file containing the TXD extension.

Returns

  • bool: result

Returns true if the texture was added, and throws an error otherwise.

Code Examples

client
local dff = engineLoadDFF("shirt_model_1.dff")
local txd = engineLoadTXD("shirt_model_1.txd")
engineAddClothingModel(dff, "shirt_model_1.dff")
engineAddClothingTXD(txd, "shirt_model_1.txd")
addClothingModel("shirt_model_1", "shirt_model_1", 0)

See Also

Engine Functions