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

Function

removePedClothes

ServerClothesIdentical to MTA:SA

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