Utilises player metadata in qbx-core and qb-core to allow you to level lock crafts and add xp/rep for crafting items.
This script just utilises ox_inventory crafting hooks to handle checks when crafting, you still need to setup your items and benches accordingly in ox_inventory.
- Drag and drop into resources folder
- Ensure the items are defined in ox_inventory/data/items.lua
- Ensure you create your crafting benches correctly in ox_inventory/data/crafting.lua
- Go through the config and edit to your needs
In order for this not to be exploitable (currently - without players can just cancel progress and farm xp), you must set the crafting progress bar in ox_inventory to canCancel = false
.
ox_inventory/client.lua
locate the ox_inventory:startCrafting
callback and change canCancel from true to false.
- QBOX/ QBCore
- ox_inventory
- ox_lib
Join my Discord for support and roles.
If you enjoy my work feel free to buy me a coffee :)