#Issue with Combinable Attribute in QB-Core

1 messages · Page 1 of 1 (latest)

languid phoenix
#

Hey hey! It is my understanding that the new version of qb-inventory now solely uses the "combinable" attributes from the qb-core/shared/items.lua file to determine crafting recipes inside the player's inventory (please feel free to correct me if I'm wrong!)

The attached picture shows my configuration for the lockpick, toolkit (screwdriverset), and advancedlockpick in the items.lua file. Ideally, I'd like to make this combinable recipe:

lockpick + screwdriverset = advancedlockpick

It all seems fine and dandy in the code, but nothing seems to happen in the actual game. I dragged the screwdriverset onto the lockpick in my inventory, and tried vice versa, but all they seemed to do was swap slots in my inventory, with no prompt or anything. Any help to diagnose the problem would be greatly appreciated!

brave tinsel
#

hey!! curious where you found this information about the crafting i cant seem to find it, your post is the most ive seen on the topic. combinable attribute sprecifically

languid phoenix
# brave tinsel hey!! curious where you found this information about the crafting i cant seem to...

Hey! Ive been researching for weeks but ive been unable to find any documentation about the combinable attributes. I just know that they were how crafting was done, since it was something I worked on in a previous FiveM server. But after the new qb-inventory update, it seems like inventory-integrated crafting has been completely removed, in favor of the qb-crafting script. So I’ve just been using that script to craft items now; it’s very easy to set up, but the issue is that the script relies on the user third-eyeing a physical crafting bench, meaning they’d have to actively find one every time they want to craft something. It’s not ideal, but I guess it’s the next best thing! 😅

brave tinsel
#

omg i thought it was the other way around. i thought they did away with qb crafting in favor of the crafting abilities within qb inventory.

#

no wonder i cant find any info on the subject. i got the qb crafting set up pretty decent but having to go make small things at a bench is wild. rollin joints for example would be papers and any of the weed options in qb core

languid phoenix
brave tinsel
#

using mbiddles recent PR
https://github.com/mbiddle/qb-crafting

i swapped out lines 99, 100 in client.lua

local xpType = benchType == 'item_bench' and Config.Benches.item_bench.xpType or Config.Benches.attachment_bench.xpType

local recipes = benchType == 'item_bench' and Config.Benches.item_bench.recipes or Config.Benches.attachment_bench.recipes

for

        local bench = Config.Benches[benchType]

        if not bench then

            QBCore.Functions.Notify("Invalid bench type.", "error")

            return

        end

        

    local xpType = bench.xpType

    local recipes = bench.recipes

then added a /rollup command

RegisterCommand("rollup", function()
    TriggerEvent("qb-crafting:client:useToolChest", { parameters = { benchType = "inventory_bench" } })
end, false)

i can add more than 2 benches so i added an inventory_bench

#

/rollup anytime lol