> For the complete documentation index, see [llms.txt](https://lcdevdocs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lcdevdocs.gitbook.io/docs/library/haptic-lib/server-functions/items.md).

# Items

Here are some inventory functions (Presetup to use the latest QB-Inventory. You can make it work with any inventory)

```lua
-- These will all return true or false if the check has been passed

HapticLib.HasItem(src, item, amount)


HapticLib.HasItemsTable(src, data)


HapticLib.RemoveItem(src, item, amount, reason)


HapticLib.AddItem(src, item, amount, reason)

HapticLib.GetItemsByname(src, data) -- returns boolean

HapticLib.RemoveItemBySlot(src, item, amount, slot, reason) -- Raw Function

HapticLib.GetItemBySlot(src, slot)

HapticLib.AddItemMeta(src, item, amount, info, reason) -- Info must be a lua table

```
