engineAddClothingModel | Multi Theft Auto: Wiki Skip to content

engineAddClothingModel

Client-side
Server-side
Shared

Added in 1.6.0 r23124

This function adds new CJ clothing model.

Syntax

bool engineAddClothingModel ( ​dff theModel, ​string fileName )
Required Arguments
  • theModel: The model that will be added.
  • fileName: Name of the file containing the DFF extension.

Returns

  • bool: result

Returns true if the model 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