Core Crafting
Requirements
Framework
QBCoreESXQBX
Target
ox_targetqb-target
Database
MySQL
Setup
1
Add the Resource
Place core_crafting into your server's resources folder.
resources/
[c8re]/
core_crafting/2
Import the Database
Execute the SQL file included with the resource:
sql
-- Run this in your database
SOURCE core_crafting.sql;Or import core_crafting.sql through your database management tool (HeidiSQL, phpMyAdmin, etc).
3
Configure the Framework
Open config.lua and set your framework:
lua
Config = {
Framework = 'qb-core', -- 'qb-core' or 'esx'
FrameworkResource = 'qb-core', -- Resource name of your framework
NewFrameworkVersion = true, -- ESX only: set false for versions < 1.8
}4
Add Items
Add the crafting items and ingredients to your inventory system:
- QBCore — Add items to
qb-core/shared/items.lua - ESX — Add items to your items database table
WARNING
Every recipe ingredient and crafted item in the config must exist as an item in your inventory system.
5
Start the Resource
Add to your server.cfg after your framework and oxmysql:
cfg
ensure oxmysql
ensure qb-core
ensure core_craftingDANGER
oxmysql must start before the script. Ensure the order is correct in your server.cfg.
6
Verify
- Start your server
- Join and check for any errors in the console
- Visit a workbench location or use a placeable workbench item to test the UI
