Setup
Install and configure Crafting.
#Download
Download Zyke's Crafting from your CFX portal under Granted Assets. If it is missing from your portal, see Lacking Entitlement.
#Dependencies
Install oxmysql, zyke_lib, and a target resource such as
ox_targetorqb-target. Configure the framework, inventory, and target inzyke_lib. See Dependencies.
#Resource
Place the resource in your server's resources folder as
zyke_crafting. Keep the folder name as it is.
#Items & Images
Copy the matching definitions from
zyke_crafting/extras/items/ox_inventory.luaorzyke_crafting/extras/items/qb-core.luainto your inventory. Copy the images fromzyke_crafting/extras/items/images/into the inventory's image directory.The bundled items are examples for the default recipes, such as
iron,brass,gunpowder, thesnspistol_part_*parts,blueprint, and the placeablecrafting_bench. Change the recipes inConfig.Craftsto use your own items, and only add the ones you keep.Keep
blueprintnon-stackable/unique, since each one stores its recipe and uses left in its metadata. See Blueprints.
#Database
The
zyke_craftingandzyke_crafting_benchestables are created on the first start, so there is no SQL to import.
#Start Order
Start the dependencies before Crafting:
cfgensure oxmysql ensure ox_target ensure zyke_lib ensure zyke_craftingReplace
ox_targetwith your target resource if you use another one.
#Verify Gameplay
Give yourself a
crafting_bench, use it, and place the bench. Open it through your target, then craft a recipe you have the materials for. Use/craft:addbpto give yourself a blueprint for a locked recipe.