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

Function

getPedClothes

ServerClothesIdentical to MTA:SA

Returns what a ped wears on a body part: the texture, the model and the colour ("RRGGBB", a zone list or nil).

Syntax

string, string, string getPedClothes(ped thePed, int|string clothesType)

Arguments

thePedped
The ped.
clothesTypeint|string
Clothing part 0-17 or a name.

Returns

Texture, model and colour, or false when nothing is there.

Example

local texture, model = getPedClothes(player, "hat")
outputChatBox(texture and ("Czapka: " .. model) or "Bez czapki", player)

See also