QBCore Configuration

QBCore Crafting System Installation Guide

Prerequisites

Before installing the crafting system, ensure you have:

  • QBCore Framework (latest version)

  • One of the following inventory systems:

    • qb-inventory (default)

    • ox_inventory

    • qs-inventory

  • MySQL or MariaDB database

  • qb-target (comes with QB core)

Step 1: Resource Installation

  1. Download the resource

  2. Extract to your resources folder

  3. Rename the folder to b2-crafting

  4. Import the provided SQL:

  1. Add to your server.cfg:

Step 2: Item Setup

Add these items to your qb-core/shared/items.lua:

Step 3: Configuration

Basic Configuration (config/main.lua)

Table Configuration (config/tables.lua)

Recipe Configuration (config/recipes.lua)

Step 4: QB-Target Integration

The system automatically integrates with QB-Target. The following options are registered automatically:

  • Crafting interaction

  • Table pickup

  • Recycling (if enabled)

  • Table repair

No additional configuration is needed for targeting to work.

Optional Enhancements

Custom Categories

Add custom categories in config/tables.lua:

Durability System

Tables can have durability that decreases with use:

Testing Your Setup

  1. Spawn necessary items:

  1. Place the table using the item from your inventory

  2. Approach the table and use QB-Target

  3. Try crafting an item!

Common Issues & Solutions

  1. Tables not spawning:

    • Verify item is registered in QB-Core items.lua

    • Check prop name in TableTypes

    • Ensure coordinates are accessible

  2. Can't craft items:

    • Double-check item names match QB-Core items.lua exactly

    • Verify you have required materials

    • Check job requirements if set

    • Confirm blueprint requirements

  3. QB-Target not working:

    • Ensure qb-target is started before b2-crafting

    • Check targeting configuration

    • Verify table entity exists

  4. Inventory errors:

    • Check item weights in QB-Core config

    • Verify item names match exactly

    • Ensure inventory slots are available

Support

For additional support:

  1. Join our Discord

  2. Enable debug mode in config

  3. Check server/client console for errors

Upgrading

When upgrading:

  1. Backup your configs

  2. Update the resource

  3. Compare and merge your configs

  4. Run any new SQL queries

  5. Clear server cache

Need more help? Check our Discord or GitHub issues!

Last updated