- Documentation
- Server functions
- removePedClothes
Function
removePedClothes
Removes a piece of a ped's clothing. With a texture and a model it removes it only when the ped wears exactly that item.
Syntax
bool removePedClothes(ped thePed, int|string clothesType [, string clothesTexture, string clothesModel])Arguments
thePedped- The ped.
clothesTypeint|string- Clothing part 0-17 or a name.
clothesTexturestring, optional- A texture that must match.
clothesModelstring, optional- A model that must match.
Returns
true if the clothing was removed.
Example
removePedClothes(player, 0, "vestblack", "vest")
See also
addPedClothesPuts a piece of CJ clothing on a ped (a player or an NPC): a texture and a model in one of 18 parts (0-17 or a name like"shirt","hat","trousers"). Every player sees it. The fifth argument (Trilogy Hub only) recolours the clothing:"RRGGBB"or a zone list"RRGGBB,,RRGGBB"(an empty spot = the zone stays as is, e.g. a print is kept).getPedClothesReturns what a ped wears on a body part: the texture, the model and the colour ("RRGGBB", a zone list ornil).setPedClothesAnother name forsetPlayerClothes: puts on a piece of clothing, with the same arguments.