- Dokumentacja
- Funkcje serwera
- getClothesByTypeIndex
Funkcja
getClothesByTypeIndex
Zwraca teksturę i model ubrania o numerze index w danym rodzaju, z tabeli wgranej przez setClothesData.
Składnia
string, string getClothesByTypeIndex(int clothesType, int clothesIndex)Argumenty
clothesTypeint- Rodzaj 0-17.
clothesIndexint- Numer ubrania liczony od 0.
Zwraca
Tekstura i model albo false.
Przykład
local texture, model = getClothesByTypeIndex(0, 0)
if texture then addPedClothes(player, texture, model, 0) end
Zobacz też
setClothesDataWgrywa własną tabelę ubrań dlagetClothesByTypeIndexigetTypeIndexFromClothes: rodzaj (jako napis"0"-"17") -> lista{ tekstura, model }. Bez niej obie funkcje zwracająfalse.getTypeIndexFromClothesZwraca rodzaj i numer ubrania po teksturze i modelu, z tabeli wgranej przezsetClothesData.