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
-
Configurable crafting stations and recipes
-
Player XP system for crafting levels
-
NUI-based crafting UI with live progress bar
-
Integration with
qb-targetfor ped interactions
config.luacontains 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 categoriesConfig.ExpPerCraft→ XP gained per craftConfig.InventoryImagePath→ path to images for NUI
-
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
MIT License – free to use, modify, and distribute. Please give credit if shared publicly.
