HU/getClothesTypeName

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Ezzel a funkcióval visszakaphatjuk egy bizonyos ruhatípus nevét.

Szintaxis

string getClothesTypeName ( int clothesType )

Kötelező paraméterek

  • clothesType: Egy egész szám, amely meghatározza azon ruhák típusát, melyet megszeretne kapni.

Visszatérési érték

Visszatérési értéke egy string (a ruhatípus neve), ha van találat, egyébként false.

Példa

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 ) )
  end
end
addCommandHandler ( "clothes", getClothes )

Lásd még

Fordította