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

Funkcja

getTypeIndexFromClothes

SerwerUbraniaIdentyczna z MTA:SA

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ż