GetItemName
The game’s name of an item key.
Turns a class GUID - what the client reports, what the callbacks carry - into the name the catalogue lists.
Syntax
Section titled “Syntax”GetItemName(key)| Parameter | Type | |
|---|---|---|
key |
string | number | an item’s id, name, English name or GUID |
Returns
Section titled “Returns”string - the name (shortswordBroad); "" when unknown
Example
Section titled “Example”function OnPlayerDrop(pid, id) Log(GetPlayerName(pid), "dropped", GetItemName(GetEntityTemplate(id)))endSee also
Section titled “See also”GetItemClass · GetItemInfo · the Catalogues group of the index
