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

Function

setPlayerClothes

ServerClothesTrilogy Hub only

Puts a piece of clothing on a player; the same as addPedClothes, 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.

Syntax

bool setPlayerClothes(player thePlayer, string clothesTexture, string clothesModel, int|string clothesType [, string color])

Arguments

thePlayerplayer
The player.
clothesTexturestring
Texture name.
clothesModelstring
Model name.
clothesTypeint|string
Clothing part 0-17 or a name.
colorstring, optional
A "RRGGBB" colour or a zone list.

Returns

true on success.

Example

setPlayerClothes(player, "vestblack", "vest", "shirt")

See also