- Documentation
- Server functions
- getPlayerClothesOffset
Function
getPlayerClothesOffset
Returns the offset and scale of a part of the look (0, 0, 0, 1 when it is not moved).
Syntax
float, float, float, float getPlayerClothesOffset(ped thePed, int|string clothesType)Arguments
thePedped- The ped.
clothesTypeint|string- Clothing part 0-17 or a name.
Returns
x, y, z and scale.
Example
local x, y, z, scale = getPlayerClothesOffset(player, "hat")