Skip to content

IsItemIDInInventory

Ghost edited this page Jun 22, 2023 · 1 revision

Checks if the given item is in player's inventory. Searches all equipped bags. If the item exists, also returns an ItemLocation.

Usage

local itemID = 17;
local inBag, itemLoc = LibInventoryHelper.IsItemIDInInventory(itemID);

Returns:

  • inBag: boolean
  • itemLoc: ItemLocation (only if the item exists in the user's bags)

Clone this wiki locally