Skip to content

IsItemIDInBag

Ghost edited this page Jun 22, 2023 · 1 revision

Checks if the given item is in the bag with the given index. If the item exists, also returns an ItemLocation.

Usage

local itemID = 17;
local bagIndex = Enum.BagIndex.Backpack;

local inBag, itemLoc = LibInventoryHelper.IsItemIDInBag(bagIndex, itemID);

Returns:

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

Clone this wiki locally