Skip to content

HasRoomForItemByID

Ghost edited this page Jun 22, 2023 · 1 revision

Returns true if the player has enough room for the item with the given ID, otherwise false. Takes into account profession-specific bags, and existing item stacks when checking.

Usage

local itemID = 17;
local hasRoom = LibInventoryHelper.HasRoomForItemByID(itemID);

Returns:

  • hasRoom: boolean

Clone this wiki locally