Twisted-Development
GuidesCoreResourcesDiscord
  • 👋Introduction
  • 📀Rent a FiveM Server
  • Guides
    • 🪟Windows Installation
    • 🔓Setting Permissions
    • 🚀Script Optimization
    • 📑Miscellaneous Guides
    • 📝Visual Studio Code
    • 🔗Useful Links
  • Core
    • 📜Shared
    • ↗️Shared Exports
    • 💬DrawText
    • 📊Player Data
    • 🎮Client Event Reference
    • 🎮Client Function Reference
    • 🖥️Server Event Reference
    • 🖥️Server Function Reference
    • ❗Commands
  • Resources
    • 🔧qb-adminmenu
    • 🚑qb-ambulancejob
    • 🏨qb-apartments
    • 🏦qb-banking
    • 💰qb-bankrobbery
    • 🚌qb-busjob
    • 🏢qb-cityhall
    • 👕qb-clothing
    • 🔄qb-commandbinding
    • 🪙qb-crypto
    • 🤿qb-diving
    • 🚪qb-doorlock
    • 💊qb-drugs
    • 🕺qb-emotes
    • ⌚qb-fitbit
    • ⛽qb-fuel
    • 🚘qb-garages
    • 🚛qb-garbagejob
    • 🌭qb-hotdogjob
    • 🔫qb-houserobbery
    • 🏡qb-houses
    • ℹ️qb-hud
    • 📝qb-input
    • 🏠qb-interior
    • 🎒qb-inventory
    • 💎qb-jewelry
    • ⌨️qb-keyminigame
    • 🏁qb-lapraces
    • 🔃qb-loading
    • 🪛qb-lockpick
    • 👔qb-management
    • ↖️qb-menu
    • 🙋qb-multicharacter
    • 📰qb-newsjob
    • 🤑qb-pawnshop
    • 📱qb-phone
    • 👮qb-policejob
    • 🖨️qb-printer
    • 🔐qb-prison
    • 🔄qb-radialmenu
    • 📻qb-radio
    • ♻️qb-recyclejob
    • 📋qb-scoreboard
    • 🔋qb-scrapyard
    • 🏪qb-shops
    • 🙇qb-skillbar
    • 📚qb-smallresources
    • 🗺️qb-spawn
    • 🔫qb-storerobbery
    • 🏎️qb-streetraces
    • 🚕qb-taxijob
    • 🛻qb-towjob
    • 👁️qb-target
    • 🚛qb-truckerjob
    • 🔫qb-truckrobbery
    • 💻qb-tunerchip
    • 🔨qb-vehiclefailure
    • 🔑qb-vehiclekeys
    • 📄qb-vehiclesales
    • 🚗qb-vehicleshop
    • 🍇qb-vineyard
    • 🔫qb-weapons
    • 🌤️qb-weathersync
    • 🌿qb-weed
Powered by GitBook
On this page
  • Introduction
  • Preview
  • Configuration
  • General
  • Vending machines
  • Item crafting
  • Attachment crafting
  • Bin searching
  • Rear engine vehicles
  • Max ammo values
  1. Resources

qb-inventory

Store your precious!

Previousqb-interiorNextqb-jewelry

Last updated 2 years ago

Introduction

  • Handles all the player's storage such as personal, vehicle, stash, drops

  • Built-in support for crafting items and weapon attachments

  • qb-shops integration for displaying all items available to buy

  • Built-in support for usable vending machines & crafting benches

Preview

Configuration

General

Config = {}
MaxInventorySlots = 41 -- don't recommend changing this, not friendly!

Vending machines

-- When near one of these objects the right side inventory will display a shop

Config.VendingObjects = { -- https://gta-objects.xyz/objects
    "prop_vend_soda_01", -- the gta object that the inventory will look for
    "prop_vend_soda_02",
    "prop_vend_water_01"
}

Config.VendingItem = { -- the items found in the vending shop
    [1] = {
        name = "kurkakola", -- item name
        price = 4, -- item price
        amount = 50, -- stock amount
        info = {}, -- item info if applicable
        type = "item", -- type of item
        slot = 1, -- inventory slot the item will show up in
    },
}

Item crafting

Config.CraftingObject = `prop_toolchest_05`

Config.CraftingItems = {
    [1] = {
        name = "lockpick", -- item name
        amount = 50, -- stock amount availabe to craft
        info = {}, -- item info if applicable
        costs = { -- "ingredients" needed to craft this item
            ["metalscrap"] = 22, -- item name and amount needed
            ["plastic"] = 32,
        },
        type = "item", -- item type
        slot = 1, -- inventory slot item will show up in
        threshold = 0, -- amount of xp needed to show and craft this item
        points = 1, -- amount of xp points rewarded on succesful craft
    },
}

Attachment crafting

-- location where plays can access weapon attachment crafting
Config.AttachmentCraftingLocation = vector3(88.91, 3743.88, 40.77)

Config.AttachmentCrafting = {
    [1] = {
        name = "pistol_extendedclip", -- item name
        amount = 50, -- stock amount availabe to craft
        info = {}, -- item info if applicable
        costs = { -- "ingredients" needed to craft this item
            ["metalscrap"] = 140, -- item name and amount needed
            ["steel"] = 250,
            ["rubber"] = 60
        },
        type = "item", -- item type
        slot = 1, -- inventory slot item will show up in
        threshold = 0, -- amount of xp needed to show and craft this item
        points = 1, -- amount of xp points rewarded on succesful craft
    },
}

Bin searching

This is a work-in-progress and is not functional yet

Config.BinObjects = { -- https://gta-objects.xyz/objects
    "prop_bin_05a", -- the gta object that the inventory will look for
}

-- will most likely make a list here of items that can be randomly found
Config.BinItems = {}

Rear engine vehicles

BackEngineVehicles = { -- a list of vehicle hashes that have rear engines
    [`ninef`] = true,
    [`adder`] = true,
    [`vagner`] = true,
}

Max ammo values

Config.MaximumAmmoValues = { -- displays max ammo amount based on ammo type
    ["pistol"] = 250, -- ammo type and max ammo amount
    ["smg"] = 250,
    ["shotgun"] = 200,
    ["rifle"] = 250,
}
🎒