Skip to content

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.

GetItemName(key)
Parameter Type
key string | number an item’s id, name, English name or GUID

string - the name (shortswordBroad); "" when unknown

function OnPlayerDrop(pid, id)
Log(GetPlayerName(pid), "dropped", GetItemName(GetEntityTemplate(id)))
end

GetItemClass · GetItemInfo · the Catalogues group of the index