- Documentation
- Server functions
- setPlayerClothesOffset
Function
setPlayerClothesOffset
Moves and scales a part of the look (e.g. a hat or a tattoo) in game centimetres. Every player sees it.
Syntax
bool setPlayerClothesOffset(ped thePed, int|string clothesType, float x, float y, float z [, float scale = 1])Arguments
thePedped- The ped.
clothesTypeint|string- Clothing part 0-17 or a name.
xfloat- Sideways offset.
yfloat- Forward offset.
zfloat- Upward offset.
scalefloat, optional = 1- Scale.
Returns
true on success.
Example
setPlayerClothesOffset(player, "hat", 0, 0, 2, 1.1)