QBX
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
This is the simplest and most recommended installation for the newest qbx_core version.
FXMANIFEST CHANGE
Add another provide varaible in core_inventory/fxmanifest.lua
-- Aprox line 75
provide 'qb-inventory'
provide 'ox_inventory' -- Add thisITEMS
Move your
ox_inventory/data/items.luaintocore_inventory/data/folderEnable
UseItemsFile = trueincore_inventory/config.luaalso setItemsFileMode = '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.luayou will need to add them there you can grab them from our provided[items]/QB/weapons.luaand paste the lines in your ox items.lua file carefully as addicional items.Create an empty file
core_inventory/data/weapons.luaso qbx does not bug out
START ORDER
BASICS
IMAGES
Add the image of your items in
core_inventory/html/imgfolder.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.luaFor all your weapons items in your
qb-core/shared/items.luafile, add["category"] = 'weapons'. Or even better, you can use theweapons.luawe provide in [items] folder. All weapons have a size and the right category already set on it.Open
config_weapon.luaand choose your attachment component mode, then add the attachment items in yourqb-core/shared/items.luarelated to the mode you choose.For every other item in your
data/items.lua or items table in databaseset 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.luaunderItemCategories = {. Make sure to read the variables and what they do in configSetup item sizes in
data/items.lua or items table in databaseby 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