- Dokumentacja
- Funkcje serwera
- getPedClothes
Funkcja
getPedClothes
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ż
addPedClothesZakłada postaci (graczowi albo NPC) część ubioru CJ-a: teksturę i model w jednej z 18 części (0-17 albo nazwa jak"shirt","hat","spodnie"). Ubranie widzą wszyscy gracze. Piąty argument (tylko Trilogy Hub) przebarwia ubranie:"RRGGBB"albo lista stref"RRGGBB,,RRGGBB"(puste miejsce = strefa bez zmian, np. nadruk zostaje).getPlayerClothesAllZwraca cały ubiór gracza ustawiony przez skrypty: tabelę część ->{ texture, model, color, name }.setPedClothesInna nazwasetPlayerClothes: zakłada część ubioru, z tymi samymi argumentami.removePedClothesZdejmuje postaci część ubioru. Z teksturą i modelem zdejmuje ją tylko wtedy, gdy postać ma na sobie dokładnie to ubranie.