- Dokumentacja
- Funkcje serwera
- setPlayerClothesOffset
Funkcja
setPlayerClothesOffset
Przesuwa i skaluje część wyglądu (np. czapkę albo tatuaż) w centymetrach gry. Widzą to wszyscy gracze.
Składnia
bool setPlayerClothesOffset(ped thePed, int|string clothesType, float x, float y, float z [, float scale = 1])Argumenty
thePedped- Postać.
clothesTypeint|string- Część ubioru 0-17 albo nazwa.
xfloat- Przesunięcie w bok.
yfloat- Przesunięcie w przód.
zfloat- Przesunięcie w górę.
scalefloat, opcjonalny = 1- Skala.
Zwraca
true przy powodzeniu.
Przykład
setPlayerClothesOffset(player, "hat", 0, 0, 2, 1.1)