getPedClothes | Multi Theft Auto: Wiki Skip to content

getPedClothes

Client-side
Server-side
Shared

Pair: addPedClothes

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 current clothes texture and model of a certain type on a ped.

Syntax

getPedClothes ( )

Code Examples

server

This example prints the model and texture of the current clothing on the player who enters the "clothes" command. For example: "clothes 3" for the shoes.

function getClothes ( source, key, clothesType )
local texture, model = getPedClothes ( source, clothesType )
if ( texture and model ) then
outputChatBox ( getPlayerName(source) .. " is wearing " .. texture .. " " .. model ..
" on his " .. getClothesTypeName(clothesType), source )
else
outputChatBox ( "Invalid input.", source )
end
end
addCommandHandler ( "clothes", getClothes )

See Also