Client-side function

addClothingModel

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r23124:
This function adds a new wearable clothing item for CJ.

Syntax

bool addClothingModel ( string clothesTexture, string clothesModel, int clothesType )

Required Arguments

  • clothesTexture: A string determining the clothes texture that will be added.
  • clothesModel: A string determining the clothes model that will be added.
  • clothesType: A integer representing the clothes slot/type the clothes should be added to. See the clothes catalog.

Returns

Returns true if the clothing was added, and false otherwise.

Example

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