ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPlayerClothesOffset

Function

getPlayerClothesOffset

ServerClothesTrilogy Hub only

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")

See also