ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setClothesData

Function

setClothesData

ServerClothesTrilogy Hub only

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

See also