- Documentation
- Server functions
- getPlayerWardrobe
Function
getPlayerWardrobe
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
getPlayerClothesAllReturns the player's whole outfit set by scripts: a part ->{ texture, model, color, name }table.setPlayerClothesPuts a piece of clothing on a player; the same asaddPedClothes, with the argument order: texture, model, part. The fifth argument is a"RRGGBB"colour or a zone list. The player must use the CJ skin (0); the launcher wardrobe outfit (skin -1) is changed on a CJ copy that comes back after a skin change.