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

Funkcja

getClothesByTypeIndex

SerwerUbraniaIdentyczna z MTA:SA

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ż