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

Function

getPlayerWardrobe

ServerClothesTrilogy Hub only

Returns the player's outfit from the launcher wardrobe (skin -1), read only: a part -> { texture, model, color, name } table. An empty table = the player joined without an outfit. Scripts do not change this outfit; they dress a separate CJ copy (skin 0).

Syntax

table getPlayerWardrobe(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

The outfit table (may be empty) or false.

Example

local outfit = getPlayerWardrobe(player)
if next(outfit) == nil then
    outputChatBox("Nie masz stroju z garderoby.", player)
end

See also