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

Function

removePlayerClothes

ServerClothesTrilogy Hub only

Removes a piece of a player's clothing. Accessories (hat, glasses, tattoo) disappear, while the shirt, trousers and shoes go back to the default look, because the game cannot draw a ped without them.

Syntax

bool removePlayerClothes(player thePlayer, int|string clothesType)

Arguments

thePlayerplayer
The player.
clothesTypeint|string
Clothing part 0-17 or a name.

Returns

true on success.

Example

removePlayerClothes(player, "glasses")

See also