SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje serwera
  3. setClothesData

Funkcja

setClothesData

SerwerUbraniaTylko Trilogy Hub

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

Zobacz też