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

Funkcja

removePedClothes

SerwerUbraniaIdentyczna z MTA:SA

Zdejmuje postaci część ubioru. Z teksturą i modelem zdejmuje ją tylko wtedy, gdy postać ma na sobie dokładnie to ubranie.

Składnia

bool removePedClothes(ped thePed, int|string clothesType [, string clothesTexture, string clothesModel])

Argumenty

thePedped
Postać.
clothesTypeint|string
Część ubioru 0-17 albo nazwa.
clothesTexturestring, opcjonalny
Tekstura, która musi pasować.
clothesModelstring, opcjonalny
Model, który musi pasować.

Zwraca

true, gdy ubranie zostało zdjęte.

Przykład

removePedClothes(player, 0, "vestblack", "vest")

Zobacz też