Skip to content

HasRoomForItemByGUID

Ghost edited this page Jun 22, 2023 · 2 revisions

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

Usage

local itemGUID = 1234; -- imagine this is a real item GUID
local hasRoom = LibInventoryHelper.HasRoomForItemByGUID(itemGUID);

Returns:

  • hasRoom: boolean

Clone this wiki locally