LC-Development
  • 👋Welcome to HapticCode
  • 📚Library
    • 🖥️Haptic-Lib
      • 🔧 Config
      • 📙 Usage
      • 🤝Client Functions
        • Blips
        • Items
        • Notify
        • Target
        • Peds
      • 💻Server Functions
        • Items
        • Jobs
        • Money Functions
        • Notify
  • 😇Remastered Scripts
    • 🛒 LC-Businesses
      • 🎯Job Blips
      • 💼 Duty Locations
      • ❄️ Fridges
        • Fridge Shops
        • Fridge Stashs
        • Final Step
      • 📥 Trays
      • 🍔 Drink/Fryer/Grill/Pack
      • 📦Shared Employee Stash
      • 📦Private Employee Stash
      • 📦Table Stashs
      • 🪑 Chairs
      • 💃 NPC Dancers/Strippers
      • 🎧 DJ Booths
      • 💰Cash Registers
      • 🧑Custom Animations
      • 🍔Consumables
    • 🏛️LC-Cityhall
      • 📝Config
      • 💳Licenses
  • Haptic
    • 😷 Haptic-Gangs
      • 🔧 Initial Config
      • 📚 Zone Configuration
      • 💊Drug Dealing
        • 💊 Zone Based Dealing
      • 💀Death Tracker
      • 💻Exports
      • 📝 Integrations
        • 🚑 QB-AmbulanceJob
        • 💎 QB-Jewellery
        • 💵 QB-StoreRobbery
        • 💦Rcore Integration
      • 🏗️Common Issues
    • 🔫Haptic-Ammunation
      • 📝Config
    • 💊Haptic-DrugEffects
Powered by GitBook
On this page
  1. Library
  2. Haptic-Lib
  3. 💻Server Functions

Items

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

-- 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
Previous💻Server FunctionsNextJobs

Last updated 9 months ago

📚
🖥️