[PAID] [QBCore] QB Backpacks

Introducing my first release

Features

  • Multiple backpack types with configurable sizes and models
  • Guncase with code lock and weapons-only restriction
  • Prevents backpacks inside backpacks (nesting)
  • Props appear on player (largest backpack equipped)
  • Props sync with player visibility (invisible = hidden prop)
  • Place and pick up backpacks/guncases on the ground
  • Default items for EMS and police bags
  • Full server/client-side validation and anti-exploit

Buy here Tebex

Installation

  1. Download from your cfx granted assets and put it into your resources folder.
  2. Ensure you have the following dependencies:
  1. Add ensure qb-backpacks to your server.cfg after all dependencies.

NB!!! Only tested on new qb-inventory.

Configuration

  • Edit shared/config.lua to:
  • Add or modify backpack types, sizes, and models
  • Set default items for EMS/police bags
  • Adjust guncase restrictions
  • Backpack models and bone/position/rotation are set in Config.BagProps.

Usage

  • Backpacks and guncases are usable items (add to your items database if needed).
  • Use a backpack/guncase from inventory to place it on the ground.
  • Interact with the prop using qb-target to open, pick up, or (for guncase) enter/set code.
  • Only the largest backpack in your inventory will show as a prop on your back.
  • Backpack will show with Guncase if both are in inventory.
  • You cannot put backpacks inside other backpacks, or pick up a backpack with another backpack inside.
  • Props will hide if the player is invisible.
  • Please note EMS and Police bags require you to place on ground first, they need to be opened twice the first time before items are added (Will update when I get this sorted).

Config file
config.lua (2.5 KB)

Code is accessible No (config open)
Subscription-based No
Lines (approximately) 1200
Requirements Listed Above
Support Yes
1 Like