[FREE] ox inventory addons

i have refactored how crafting works entirely to better support using the same items in multiple crafts.

this will be the new format. i tested these myself and they were working. the docs are also updated

    ['weed_lemonhaze rolling_paper'] = {
        duration = 3000,
        result = {
            { name = 'lemonhaze_joint', amount = 1 },
        },
        costs = {
            ['weed_lemonhaze'] = { need = 2, remove = true },
            ['rolling_paper'] = { need = 1, remove = true },
        },
    },

    ['weed_lemonhaze backwoodshoney'] = {
        otherItem = 'weed_lemonhaze',
        duration = 3000,
        result = {
            { name = 'lemonhaze_blunt', amount = 1 },
        },
        costs = {
            ['weed_lemonhaze'] = { need = 3, remove = true },
            ['backwoodshoney'] = { need = 1, remove = true },
        },
    },

    ['blueberry_kush rolling_paper'] = {
        duration = 3000,
        result = {
            { name = 'blueberry_joint', amount = 1 },

        },
        costs = {
            ['blueberry_kush'] = { need = 2, remove = true },
            ['rolling_paper'] = { need = 1, remove = true },
        },
    },

    ['blueberry_kush backwoodshoney'] = {
        duration = 3000,
        result = {
            { name = 'blueberry_blunt', amount = 1 },

        },
        costs = {
            ['blueberry_kush'] = { need = 3, remove = true },
            ['backwoodshoney'] = { need = 1, remove = true },
        },
    },
1 Like

Hello, I have a small problem. The weapons do not appear in the back. When I make an item to have the cardboard in hand it does not appear either. It only appears on the ground when I put it down. Do you have any idea where this is coming from?

If you have an anti cheat it could be blocking prop spawns.

I don’t use an anti prop menu. I tried to remove my admin menu it’s always the same, do you know what I should look for in my scripts? Thanks

Im not sure. As long as everything is defined correctly in the configs, it should work fine. Unless you have something that prevents props from being spawned somewhere. Usually thats an ac thing like i was saying though.

I use an animation menu with props and they appear correctly so I’m still looking for where it can come from

[image]

is there a way to make dropped props stay the prop that you drop instead of the bag? like for example if youre carrying a box, and try to give yourself another box, the box prop spawns on the ground, but if you just drop the prop it turns into a bag

1 Like

Not with how it’s currently written

1 Like

thats totally fine, another thing tho, if a carried item gets deleted and not dropped, it still stays in your hand, just for example say you had 2 items, 1 carriable water, and a cup or something, if you set it up to combining them items to turn into something else, upon completion it will take both items but youll still have the prop in your hand, or say youre carrying a prop and die and lose your inv, youll respawn with it still in your hand, is there code you can add to remove the prop if the item is deleted?

1 Like

I see, yeah i will have to update the scripts to account for the deletion

1 Like

please update me when you do! these scripts are amazing, and cant wait to use them!

1 Like

@Flie-Creations

1 Like

Thank you!

so with the way you have the drag craft setup after crafting the item either the ingredient items are removed or not removed. is it possible that instead of having an ingredient be removed that it would instead use the item durability? for example i want an item to be able to be used for 5 crafts and after the 5th craft the durability would be 0 and then ox_inventory wold auto delete it.

1 Like

sure i will add a way to use durability instead

ive added this feature

2 Likes

Is it possible to add the carry item feature for car trunks….like if I put a box in the trunk u can see it in the trunk?

Love the addons!

Would it be possible to add other types of requirements for crafting recipes to work?

For example, being near a prop (workbench, table etc) or being within certain pre-defined map boundaries or MLO etc.

Thanks!

Hello, how do you modify this please?
image

for those that have had the crashing issue with the backItems module, i am happy to announce that it has been fixed now in version 1.0.3 along with some other optimization changes

2 Likes