- Documentation
- Server functions
- setClothesData
Function
setClothesData
Loads your own clothing table for getClothesByTypeIndex and getTypeIndexFromClothes: a type (as a string "0"-"17") -> a list of { texture, model }. Without it both functions return false.
Syntax
bool setClothesData(table data)Arguments
datatable- The clothing table.
Returns
true on success.
Example
setClothesData({
["0"] = { { "vestblack", "vest" }, { "vestwhite", "vest" } },
})
local texture, model = getClothesByTypeIndex(0, 1) -- vestwhite, vest