addClothingModel
Client-side
Server-side
Shared
Added in 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.
- 0: SHIRT
- 1: HEAD
- 2: TROUSERS
- 3: SHOES
- 4: TATTOOS_LEFT_UPPER_ARM
- 5: TATTOOS_LEFT_LOWER_ARM
- 6: TATTOOS_RIGHT_UPPER_ARM
- 7: TATTOOS_RIGHT_LOWER_ARM
- 8: TATTOOS_BACK
- 9: TATTOOS_LEFT_CHEST
- 10: TATTOOS_RIGHT_CHEST
- 11: TATTOOS_STOMACH
- 12: TATTOOS_LOWER_BACK
- 13: NECKLACE
- 14: WATCH
- 15: GLASSES
- 16: HAT
- 17: EXTRA
Returns
- bool: result
Returns true if the clothing was added, and false 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)