Overview
sg-anycraft is a versatile crafting system for FiveM servers supporting QBCore and Qbox frameworks with multicraft capabilities. It provides flexible configuration options for menus, inputs, inventory systems, and more.
Features
- Multi-Framework Support - Works with QBCore and Qbox (auto-detection)
- Multicraft - Craft multiple items at once with sequential progress bars
- Configurable UI - Choose between qb-menu/ox_lib for menus and inputs
- Flexible Inventory - Supports qb-inventory and ox_inventory
- Banking Integration - qb-banking or Renewed-Banking for business accounts
- Permission System - Per-table and per-recipe license restrictions
- Target System - Supports both qb-target and ox_target
Configuration
-- config.lua
Config.Framework = 'auto' -- 'auto', 'qbcore', 'qbox'
Config.ContextMenu = 'qb-menu' -- 'qb-menu', 'ox_lib'
Config.Input = 'qb-input' -- 'qb-input', 'ox_lib'
Config.Progressbar = 'qb' -- 'qb', 'ox_lib'
Config.Inventory = 'qb-inventory' -- 'qb-inventory', 'ox_inventory'
Config.Target = 'qb-target' -- 'qb-target', 'ox_target'
Config.Banking = 'qb-banking' -- 'qb-banking', 'Renewed-Banking'Crafting Table Example
Config.CraftingTables = {
{
id = "weapons_bench",
label = "Weapons Bench",
prop = `gr_prop_gr_bench_01b`,
coords = vector4(452.66, 5566.92, 780.18, 85.05),
job = nil, -- Optional: restrict to job
business = "weapons_shop", -- Optional: profits go to this account
permissions = {"license:ABC123"}, -- Optional: citizenid whitelist
blip = {
enabled = true,
sprite = 566,
color = 1,
scale = 0.8,
label = "Weapons Bench"
},
recipes = {
{
item = "weapon_pistol",
label = "Pistol",
price = 500, -- Optional: crafting cost
permissions = {}, -- Optional: per-recipe permissions
requiredItems = {
{ item = "steel", amount = 10 },
{ item = "plastic", amount = 5 }
}
}
}
}
}Installation
1
Place Resource
Place sg-anycraft in your resources folder
2
Add to server.cfg
ensure sg-anycraft3
Configure
Configure config.lua to match your server setup
4
Optional Dependencies
If using ox_lib features, ensure ox_lib is started before this resource
Dependencies
Required (one of):
qb-coreORqbx_core
Optional (based on config):
ox_lib(for ox_lib menu/input/progressbar)ox_inventory(if using ox_inventory)ox_target(if using ox_target)Renewed-Banking(if using Renewed-Banking)
License
GPL-3.0