- Dokumentacja
- Funkcje serwera
- getTypeIndexFromClothes
Funkcja
getTypeIndexFromClothes
Zwraca rodzaj i numer ubrania po teksturze i modelu, z tabeli wgranej przez setClothesData.
Składnia
int, int getTypeIndexFromClothes(string clothesTexture [, string clothesModel])Argumenty
clothesTexturestring- Tekstura.
clothesModelstring, opcjonalny- Model.
Zwraca
Rodzaj i numer albo false.
Przykład
local clothesType, index = getTypeIndexFromClothes("vestblack", "vest")
Zobacz też
getClothesByTypeIndexZwraca teksturę i model ubrania o numerzeindexw danym rodzaju, z tabeli wgranej przezsetClothesData.setClothesDataWgrywa własną tabelę ubrań dlagetClothesByTypeIndexigetTypeIndexFromClothes: rodzaj (jako napis"0"-"17") -> lista{ tekstura, model }. Bez niej obie funkcje zwracająfalse.