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

Funkcja

getPedClothes

SerwerUbraniaIdentyczna z MTA:SA

Zwraca, co postać ma na danej części ciała: teksturę, model i kolor ("RRGGBB", listę stref albo nil).

Składnia

string, string, string getPedClothes(ped thePed, int|string clothesType)

Argumenty

thePedped
Postać.
clothesTypeint|string
Część ubioru 0-17 albo nazwa.

Zwraca

Tekstura, model i kolor albo false, gdy nic tam nie ma.

Przykład

local texture, model = getPedClothes(player, "hat")
outputChatBox(texture and ("Czapka: " .. model) or "Bez czapki", player)

Zobacz też