Skip to content

Advanced Crafting v1.1.5

Advanced Crafting (sd-crafting) is a fully featured crafting system for FiveM with static and placeable workbenches, recipe tables, blueprints, tech trees, tool requirements, leveling, an admin panel, and a persistent crafting queue.

Preview

Advanced Crafting — Full Showcase

Advanced Crafting — Admin Menu Showcase

Features

Workbench Types

Multiple workbench types (e.g. basic, advanced) can be configured independently. Each type has its own set of recipe tables, leveling progression, and tech trees. Static stations are placed by server owners at fixed map coordinates, while placeable workbenches allow players to deploy their own crafting stations anywhere in the world.

Recipe Tables

Recipes are organized into named tables (e.g. all, basic, advanced). Each station or placeable workbench specifies which tables to use, allowing mix-and-match recipe availability. Recipes support ingredients, output amounts, fail chance, XP rewards, tech point rewards, level requirements, money costs, tool requirements, blueprints, and item metadata.

Blueprint System

Blueprints are items that unlock specific recipes. Blueprints degrade through a durability system -- each craft consumes a portion of the blueprint's durability until it breaks. A legacy random-destruction system is also available as an alternative.

INFO

The blueprint durability system requires ox_inventory for metadata support. The legacy destroyOnCraft system works with any inventory.

Tool System

Recipes can require tools that must be present in the crafting inventory. Tools support four consumption types:

TypeBehavior
noneNever consumed, just needs to be present
durabilityLoses durability per craft (ox_inventory only)
chancePercentage chance to break per craft
consumeAlways consumed like an ingredient

Inventory Panel with Staging

The crafting UI includes a built-in inventory panel where players drag items into a crafting inventory (staging area) before crafting. The staging area is configurable with slot limits and weight limits, and can be set to per-player or per-workbench storage.

Crafting Queue

All active crafts are placed into a queue. The queue is persistent across server restarts and supports both player-specific and shared modes. Queue behavior (what happens on UI close, player disconnect, etc.) is highly configurable at global, per-station, and per-workbench levels.

Fail Chance

Two fail chance modes are available:

ModeBehavior
All-or-nothing (treatQuantityAsWhole = true)A single roll determines if the entire batch succeeds or fails
Per-item rolls (treatQuantityAsWhole = false)Each item is rolled individually -- partial successes are possible

Leveling System

Players gain XP per craft and level up. Leveling can be configured per workbench type with independent level tables and max levels, or as a single global progression. Each workbench type can define its own XP thresholds and max level.

Tech Trees

A skill progression system lets you gate recipes behind prerequisite unlocks. Players earn tech points through crafting and spend them to unlock nodes in visual tech trees. Tech trees are assigned to stations and workbenches independently, and can optionally be shared across all users of a placed workbench.

Shops

Configurable NPC shop peds that sell workbench items and crafting materials to players, with blip support and customizable inventories.

Permissions System

Placed workbenches support an access control system where only the owner and explicitly added players can use the workbench.

Crafting History

Placed workbenches track a crafting history showing who crafted what, with configurable visibility and owner-only deletion.

Admin Panel

A full in-game admin panel accessible via command, allowing management of players, queues, stations, recipes, and tech trees. Admins can create/edit/delete recipes, tech trees, and stations live -- changes persist to the database.

Logging

Comprehensive logging system supporting Discord webhooks, Fivemanage, Fivemerr, Loki, and Grafana Cloud. Every crafting event is configurable with custom messages, fields, and colors.

Locales

Built-in locale support with translations for:

  • English (en)
  • German (de)

Supported Frameworks

FrameworkStatus
qb-coreFully supported
qbx_coreFully supported
es_extended (ESX)Fully supported

Supported Inventories

InventoryStatus
ox_inventoryFully supported
tgiann-inventorySupported
jaksam_inventorySupported
qs-inventorySupported
qs-inventory-proSupported
origen_inventorySupported
qb-inventorySupported
ps-inventorySupported
lj-inventorySupported
codem-inventorySupported

Supported Target Systems

TargetStatus
ox_targetFully supported
qb-targetFully supported
qtargetFully supported

Dependencies

DependencyOptionsRequired
Frameworkqb-core or es_extendedYes
Libraryox_libYes
DatabaseoxmysqlYes
Target Systemox_target / qb-target / qtargetYes
InventoryAny of the 10 supported inventories listed aboveYes
Placementobject_gizmo (optional)No

TIP

The framework and inventory system are auto-detected at startup. Database tables are created automatically on first boot -- no manual SQL imports are required.

File Structure

sd-crafting/
  bridge/
    init.lua              -- Framework detection
    shared.lua            -- Locale system, shared utilities
    client.lua            -- Client bridge (notifications, target, interaction)
    server.lua            -- Server bridge (money, inventory, player data)
  client/
    admin.lua             -- In-game admin panel
    main.lua              -- Client-side crafting logic, workbenches, UI
  server/
    admin.lua             -- Server admin logic
    main.lua              -- Server-side crafting queue, recipes, tech trees
    migrations.lua        -- Database migration system
  configs/
    config.lua            -- Main configuration
    logs.lua              -- Logging configuration
    recipes.lua           -- Recipe definitions
    techtrees.lua         -- Tech tree/skill progression
  locales/
    de.json               -- German
    en.json               -- English
  images/
    advanced_workbench.png
    workbench.png
  tools/
    create-blueprint.js   -- Single blueprint generator
    batch-create.js       -- Batch blueprint generator
    blueprints/           -- Blueprint templates (3 PNG templates)
    output/               -- Generated blueprint images
    package.json
  web/
    build/                -- NUI build files
    src/
      AdminPanel.tsx
      App.tsx
      index.scss
      locales/
        TranslationProvider.tsx
        i18n.ts
      main.tsx
    index.html
    package.json
    postcss.config.js
    tailwind.config.js
    tsconfig.json
    tsconfig.node.json
    vite.config.ts
  [ESX]/items.sql         -- ESX item definitions
  fxmanifest.lua