microchipQBX

FRAMEWORK CONFIGURATION

Choose your framework version. Complete the neccicerry changes and continue at BASICS to finalize installation.

(NEW) FOR QBX_CORE HIGHER OR EQUAL TO 1.23.0

circle-check

FXMANIFEST CHANGE

Add another provide varaible in core_inventory/fxmanifest.lua

-- Aprox line 75
provide 'qb-inventory'
provide 'ox_inventory' -- Add this

ITEMS

  • Move your ox_inventory/data/items.lua into core_inventory/data/ folder

  • Enable UseItemsFile = true in core_inventory/config.lua also set ItemsFileMode = 'ox'

  • Modify the items to include x, y, category... variables you can find all of them in ITEMS

WEAPONS

  • Since our weapons are declared in data/items.lua you will need to add them there you can grab them from our provided [items]/QB/weapons.lua and paste the lines in your ox items.lua file carefully as addicional items.

  • Create an empty file core_inventory/data/weapons.lua so qbx does not bug out

START ORDER


BASICS

IMAGES

  • Add the image of your items in core_inventory/html/img folder.

  • All your images should have the same name as your items. For example, if you have an item called sandwich_bacon, the image name should be sandwich_bacon.png.

  • Only .png image are included in the FXManifest so be sure to use this extension for your images

ITEMS

  • Add default items from [items] folder.

  • Use StartItems in core_inventory/config.lua

  • For all your weapons items in your qb-core/shared/items.lua file, add ["category"] = 'weapons' . Or even better, you can use the weapons.lua we provide in [items] folder. All weapons have a size and the right category already set on it.

  • Open config_weapon.lua and choose your attachment component mode, then add the attachment items in your qb-core/shared/items.lua related to the mode you choose.

  • For every other item in your data/items.lua or items table in database set a category parameter ["category"] = (your category). This will change its color, sound, stacking properties in inventory. If not set will default to misc category.

  • Setup every added category in core_inventory/config.lua under ItemCategories = { . Make sure to read the variables and what they do in config

  • Setup item sizes in data/items.lua or items table in database by defining x and y parameters. ["x"] = 2, ["y"] = 2 . The x defines how many slots the items takes up horizontally and the y vertically.

  • For more item information checkout ITEMS


MONEY AS ITEM

in qbcore/config.lua, please make to modify moneytypes and dontAllowminus like this :

In core_inventory/config.lua make sure to enable the money as item option and set the right account name in the option, for example :

Make sure to have the item money and the item markedbills in your items.lua and for each one make sure to have the right category (money for moneyitem and markedbill for markedbills item) :

Last updated