getClothesTypeName
Client-side
Server-side
Shared
This function is used to get the name of a certain clothes type.
Syntax
string|false getClothesTypeName ( int clothesType )Required arguments
- clothesType: An integer determining the type of clothes you want to get the clothes of.
- 0: SHIRT
- 1: HEAD
- 2: TROUSERS
- 3: SHOES
- 4: TATTOOS_LEFT_UPPER_ARM
- 5: TATTOOS_LEFT_LOWER_ARM
- 6: TATTOOS_RIGHT_UPPER_ARM
- 7: TATTOOS_RIGHT_LOWER_ARM
- 8: TATTOOS_BACK
- 9: TATTOOS_LEFT_CHEST
- 10: TATTOOS_RIGHT_CHEST
- 11: TATTOOS_STOMACH
- 12: TATTOOS_LOWER_BACK
- 13: NECKLACE
- 14: WATCH
- 15: GLASSES
- 16: HAT
- 17: EXTRA
Returns
This function returns a string (the name of the clothes type) if found, false otherwise.
- string|false: name
Code Examples
server
This example is used to output in the chatbox what clothes type the player who uses the /clothes command is wearing.
function getClothes(thePlayer, key, clothesType) local texture, model = getPedClothes(source, clothesType) if (texture and model) then outputChatBox(getPlayerName(thePlayer) .. " is wearing " .. texture .. " " .. model .. " on his " ..getClothesTypeName(clothesType)) endendaddCommandHandler("clothes", getClothes)See Also
Clothes And Body Functions
- addClothingModelNew
- getBodyPartName
- getClothesByTypeIndex
- getClothesTypeName
- getTypeIndexFromClothes