🧰 Advanced Crafting System | [QB/QBOX/ESX]

A script by Green_Slayer

No reviews yet.
🧰 Advanced Crafting System | [QB/QBOX/ESX] main image

Full Description

:camera_flash: Preview / Showcase:

https://www.youtube.com/watch?v=whrdbhUcboM

:credit_card: (QBCORE/QBOX/ESX) Buy Escrowed - $19.99

:credit_card: (QBCORE/QBOX/ESX) Buy Unlocked - $25.99


Features

:hammer_and_wrench: Features

  • Supports QBCore, QBOX, and ESX – Fully compatible with multiple frameworks.
  • Custom Placement System – Precisely place crafting benches anywhere with our built-in system.
  • Target System Integration – Works with qb-target & ox_target for seamless interactions.
  • Inventory Support – Compatible with ox_inventory, qb-inventory, ps-inventory, qs-inventory.
  • Multi-Language Support – Includes English, Spanish, German, and French.
  • Advanced XP & Level System – Start at Level 0, XP required increases by 500 per level.
  • Custom Crafting Tables – Set up unlimited crafting benches for weapons, ammo, tools, and more.
  • Bench Lifetime System – Benches persist through restarts but despawn over time for added realism.
  • Interactive Crafting UI – Features 3D item previews, level requirements, and material indicators.
  • Webhook Logging – Track crafting actions, XP gains, and levels via Discord webhooks.
  • Easy Configuration – Fully customizable items, XP, target system, and UI settings.
  • Pre-Set Crafting Benches – Configure multiple fixed locations for crafting.
  • Bench Restrictions – Pre-set benches now support job, gang, or Citizen ID restrictions for controlled access.
  • New Blueprint System – Crafting now requires blueprints for specific items, adding a progression system.
    • Blueprint Requirement – Items can be locked behind blueprints.
    • Dynamic Crafting List – Items only appear in the crafting menu if the player owns the blueprint.
    • Consumable Blueprints – Option to make blueprints single-use or reusable.
    • Customizable Per Item – Enable or disable blueprint requirements individually.
  • XP System Toggle – XP requirements can now be disabled per item for flexible crafting.
Config
Config = {}

Config.Lan = 'en' -- Sets the language for the script. Options: 'en' (English), 'es' (Spanish), 'de' (German), 'fr' (French)

-- Framework and system integrations
Config.Target = "ox_target" -- Determines which targeting system to use. Options: 'ox_target' or 'qb-target'
Config.Inventory = "ox_inventory" -- Determines which inventory system to use. Options: 'ox_inventory' or 'qb-inventory'
Config.Notifications = "ox_lib" -- Determines which notification system to use. Options: 'qb-core' or 'ox_lib'
Config.Progressbar = "ox_lib" -- Determines which progress bar system to use. Options: 'qb-core' or 'ox_lib'

-- Inventory image directory path
Config.InventoryImagePath = "ox_inventory/web/images" -- Sets the directory path for item images. Change based on the inventory system used.

-- Crafting level system
Config.LevelSystem = {
    StarterLevel = 0, -- The initial level when a player starts crafting. Recommended: 0
    IncreaseByAfterEachLevelUp = 500 -- The XP required for the next level increases by this amount each time the player levels up
}

-- Webhook settings for logging
Config.WebHooks = false -- Enable or disable webhook logging. 'false' means logging is disabled.
Config.WebHookURL = "PLACE_YOUR_WEBHOOK_HERE" -- Webhook URL for logging crafting-related activities (only used if WebHooks = true)

-- Crafting bench settings
Config.LifetimeofBench = 999999 -- Duration (in seconds) before the crafting bench despawns. '999999' effectively makes it permanent.
Config.SecondsBeforeXpGain = 5 -- The delay (in seconds) before a player gains XP after crafting an item.

Config.PreSetTables = {
    ["Table1"] = { -- Unique identifier for this crafting table (must be different for each table)
        Label = "Crafting table",  -- The name of the crafting table (displayed in UI)
        BenchProp = "gr_prop_gr_bench_02a",  -- The prop model for the crafting bench
        BenchCoords = vector4(586.8718, -3274.8003, 6.0696, 90.0),  -- Position & heading of the bench
        Groups = { "mechanic", "lostmc" },  -- Jobs/Gangs allowed to use this bench
        CitizenID = { "MNT68646" },  -- Specific players allowed to use this bench (QBCore/QBOX Use CitizenID, ESX Use Identifier)
        ["Items"] = { -- List of craftable items for this table
            ["WEAPON_PISTOL"] = { -- ITEM NAME
                Label = "Pistol", -- Display name for the weapon
                XPEnable = false, -- Enable XP system (true = XP is earned, false = no XP)
                Level = 0, -- Required crafting level to create this item
                xpGain = 5, -- Amount of XP gained when crafting this item
                UseBlueprint = true, -- Requires a blueprint to craft this item
                ShowOnList = false, -- If true, always shows the item in the crafting list; if false, only shows if the player owns the blueprint
                RemoveBlueprint = true, -- If true, the blueprint is consumed upon crafting
                BlueprintItem = "blueprint_pistol", -- Name of the blueprint item required to craft

                ["Material"] = { -- Materials required for crafting
                    ["rubber"] = { Label = "Rubber", amount = 1 }, -- Material name, label, and amount required
                },
                
                ["Prop"] = { -- Visual representation of the crafted item on the table
                    model = "w_pi_pistol", -- The prop model to be displayed when crafting
                    offset = vector3(1.3, 0.0, -0.3), -- Position offset for placing the prop on the table
                    rotation = vector3(0, 0, 0) -- Rotation values for positioning the prop correctly
                }
            },
        }
-- REST OF THE CODE HERE

Config.PlaceableTables = {
    ["table_weapon"] = { -- Item name of the bench/table
        Label = "Weapon Crafting Table", -- The name of the crafting table (displayed in UI)
        BenchProp = "gr_prop_gr_bench_02a", -- The prop model for the crafting bench

        ["Items"] = { -- List of craftable items for this table
            ["WEAPON_PISTOL"] = { -- Weapon identifier (FiveM weapon hash name)
                Label = "Pistol", -- Display name for the weapon
                XPEnable = true, -- Enable XP system (true = XP is earned, false = no XP)
                Level = 0, -- Required crafting level to create this item
                xpGain = 3, -- Amount of XP gained when crafting this item
                UseBlueprint = true, -- Requires a blueprint to craft this item
                ShowOnList = false, -- If true, always shows the item in the crafting list; if false, only shows if the player owns the blueprint
                RemoveBlueprint = true, -- If true, the blueprint is consumed upon crafting
                BlueprintItem = "blueprint_pistol", -- Name of the blueprint item required to craft

                ["Material"] = { -- Materials required for crafting
                    ["rubber"] = { Label = "Rubber", amount = 1 }, -- Material name, label, and amount required
                },

                ["Prop"] = { -- Visual representation of the crafted item on the table
                    model = "w_pi_pistol", -- The prop model to be displayed when crafting
                    offset = vector3(1.3, 0.0, -0.3), -- Position offset for placing the prop on the table
                    rotation = vector3(0, 0, 0) -- Rotation values for positioning the prop correctly
                }
            },
            ["WEAPON_COMBATPISTOL"] = {
                Label = "Combat Pistol",
                XPEnable = true,
                Level = 0,
                xpGain = 3,
                UseBlueprint = true,
                ShowOnList = true,
                RemoveBlueprint = true,
                BlueprintItem = "blueprint_combatpistol",
                ["Material"] = {
                    ["rubber"] = { Label = "Rubber", amount = 15 },
                    ["iron"] = { Label = "Iron", amount = 25 },
                    ["plastic"] = { Label = "Plastic", amount = 20 },
                },
                ["Prop"] = {
                    model = "w_pi_combatpistol",
                    offset = vector3(1.3, 0.0, -0.3),
                    rotation = vector3(0, 0, 0)
                }
            },
-- REST OF THE CODE HERE
Screenshots



Code is accessible Yes
Subscription-based No
Lines (approximately) 1000
Requirements qb-core/esx/qbox, ox_lib, qb-inventory/ox_inventory/ps-inventory/qs-inventory, qb-target/ox_target
Support Yes

Other Resources:
Weed Growing
Oxy Run
Most Advance & Unique Drug Selling System
Mining Script
Money Wash Script
Black Market Script