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

Function

setPedClothes

ServerClothesTrilogy Hub only

Another name for setPlayerClothes: puts on a piece of clothing, with the same arguments.

Syntax

bool setPedClothes(ped thePed, string clothesTexture, string clothesModel, int|string clothesType [, string color])

Arguments

thePedped
The ped.
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

setPedClothes(player, "vestblack", "vest", 0)

See also