Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 2.22 KB

README.md

File metadata and controls

69 lines (53 loc) · 2.22 KB

qb-inventory

Installation

JUST A DRAG AND DROP FILE

just delete your old qb-inventory
and download un zip my qb-inventory_redesign
rename it to qb-inventory and put into your resource [qb]
here you go restart your server and enjoy 😉

If you like my inventory edit then support me here - buymeacoffee.com/rajashutosa

Dependencies

Features

  • Stashes (Personal and/or Shared)
  • Vehicle Trunk & Glovebox
  • Weapon Attachments
  • Shops
  • Item Drops

Documentation

https://docs.qbcore.org/qbcore-documentation/qbcore-resources/qb-inventory

Installation

Manual

  • Download the script and put it in the [qb] directory.
  • Import qb-inventory.sql in your database
  • Add the following code to your server.cfg/resouces.cfg

Migrating from old qb-inventory

Database

Upload the new inventory.sql file to create the new inventories table

Use the provided migrate.sql file to migrate all of your saved inventory data from stashes, trunks, etc

Once complete, you can delete gloveboxitems stashitems and trunkitems tables from your database

CREATE TABLE IF NOT EXISTS `inventories` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `identifier` VARCHAR(50) NOT NULL,
  `items` LONGTEXT DEFAULT ('[]'),
  PRIMARY KEY (`identifier`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

License

QBCore Framework
Copyright (C) 2021 Joshua Eger

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>