getClothesTypeName
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function is used to get the name of a certain clothes type.
Syntax
getClothesTypeName ( )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 )