Skip to content

CodeRedev/Code-Crafting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Crafting for QB-Core (UI Created by BLDR)

A fully-featured crafting system for FiveM using QB-Core. This resource allows players to craft items using configurable crafting stations, recipes, and XP progression. Includes NUI interface with progress bars


Features

  • Configurable crafting stations and recipes

  • Player XP system for crafting levels

  • NUI-based crafting UI with live progress bar

  • Integration with qb-target for ped interactions


Configuration

  • config.lua contains all stations, recipes, XP settings, and UI paths.

Example station:

Config.CraftingStations = {
    WeaponWorkshop = {
        label = "Weapon Workshop",
        coords = vector4(979.48, -1722.12, 31.12, 79.14),
        recipes = {
            weapon_knife = {
                item = "weapon_knife",
                category = "weapon",
                craftTime = 5, -- seconds
                requiredLevel = 1,
                requirements = {
                    steel = 5,
                    rubber = 2
                }
            },
        }
    }
}

Other options:

  • Config.CraftingCategories → UI categories
  • Config.ExpPerCraft → XP gained per craft
  • Config.InventoryImagePath → path to images for NUI

Client

  • Approach a crafting ped and interact (qb-target)

  • NUI interface will open:

    • Select recipe
    • Start crafting
    • Progress bar displays
    • Upon completion, item added to inventory

Preview

Crafting Interface

Dependencies


License

MIT License – free to use, modify, and distribute. Please give credit if shared publicly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages