- Dokumentacja
- Funkcje serwera
- setClothesData
Funkcja
setClothesData
Wgrywa własną tabelę ubrań dla getClothesByTypeIndex i getTypeIndexFromClothes: rodzaj (jako napis "0"-"17") -> lista { tekstura, model }. Bez niej obie funkcje zwracają false.
Składnia
bool setClothesData(table data)Argumenty
datatable- Tabela ubrań.
Zwraca
true przy powodzeniu.
Przykład
setClothesData({
["0"] = { { "vestblack", "vest" }, { "vestwhite", "vest" } },
})
local texture, model = getClothesByTypeIndex(0, 1) -- vestwhite, vest