Documentation

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_target or qb-target. Configure the framework, inventory, and target in zyke_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.lua or zyke_crafting/extras/items/qb-core.lua into your inventory. Copy the images from zyke_crafting/extras/items/images/ into the inventory's image directory.

The bundled items are examples for the default recipes, such as iron, brass, gunpowder, the snspistol_part_* parts, blueprint, and the placeable crafting_bench. Change the recipes in Config.Crafts to use your own items, and only add the ones you keep.

Keep blueprint non-stackable/unique, since each one stores its recipe and uses left in its metadata. See Blueprints.

#Database

The zyke_crafting and zyke_crafting_benches tables are created on the first start, so there is no SQL to import.

#Configuration

Edit shared/unlocked/config.lua. Review the bench types, the placeable benches, the recipes in Config.Crafts, and the admin commands. Use the Config reference for the current defaults.

#Start Order

Start the dependencies before Crafting:

cfg
ensure oxmysql
ensure ox_target
ensure zyke_lib
ensure zyke_crafting

Replace ox_target with 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:addbp to give yourself a blueprint for a locked recipe.