Skip to Content

Items Setup

Item definitions for prism_crafting

Crafting Table Item

You will need to add the crafting table item to your inventory system. Choose the section below that matches your setup.

QBCore

Add the following to your QBCore shared items:

qb-core/shared/items.lua
crafting_table = { name = 'crafting_table', label = 'Crafting Table', weight = 250, type = 'item', image = 'crafting_table.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A table for crafting items' },

OX Inventory

Add the following to your ox_inventory items:

ox_inventory/data/items.lua
['crafting_table'] = { label = 'Portable Crafting Table', weight = 5000, stack = false, close = true, description = 'A portable crafting table that can be placed anywhere', client = { export = 'prism_crafting.useCraftingTable' } },

Blueprint Items

Blueprints are used to unlock crafting recipes. Below are some examples you can add to your inventory system.

These are examples โ€” you can create as many blueprint items as needed for your serverโ€™s crafting recipes.

OX Inventory

ox_inventory/data/items.lua
['pistol_blueprint'] = { label = 'Pistol Blueprint', weight = 80, durability = 100, }, ['smg_blueprint'] = { label = 'SMG Blueprint', weight = 80, durability = 100, }, ['rifle_blueprint'] = { label = 'Rifle Blueprint', weight = 80, durability = 100, },
Last updated on