GetItemClass
The class GUID an item key stands for.
key is an item’s id, the game’s name (shortswordBroad, case-insensitive), its English name (Duelling longsword; when
several classes share one, the plainest answers) or a GUID (passed through). nil when the catalogue knows no such item.
Syntax
Section titled “Syntax”GetItemClass(key)| Parameter | Type | |
|---|---|---|
key |
string | number | an item’s id, name, English name or GUID |
Returns
Section titled “Returns”string - the class GUID; nil when unknown
Example
Section titled “Example”local class = GetItemClass("Duelling longsword")if class then SetContainerItems(chest, {{class = class, amount = 1}}) endSee also
Section titled “See also”GetItemName · GetItemInfo · FindItems · GivePlayerItem · the Catalogues group of the index
