ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getPlayerClothes

Function

getPlayerClothes

Server and clientClothesTrilogy Hub only

Returns what a player wears on a body part: the texture, the model and the colour. Works on the server and on the client.

Syntax

string, string, string getPlayerClothes(player thePlayer, int|string clothesType)

Arguments

thePlayerplayer
The player.
clothesTypeint|string
Clothing part 0-17 or a name.

Returns

Texture, model and colour, or false.

Example

local texture, model, color = getPlayerClothes(localPlayer, "shirt")
if texture then outputChatBox("Koszulka: " .. model .. " " .. tostring(color)) end

See also