Installation w/Renewed-Buisnesses

If you're using Renewed-Buisnesses and want to use both, just follow the installation instructions for renewed-buisnesses on their documentation page.

After the renewed edits, all you should need is the extra things for the crafting. So you would need to edit the

ox_inventory:closeInventory

function in

ox_inventory/modules/inventory/server.lua
    RegisterServerEvent('ox_inventory:closeInventory', function()
        local inventory = Inventories[source]

        if inventory?.open then
            local secondary = Inventories[inventory.open]

            if secondary then
                if not TriggerEventHooks('closeInventory', {
                    source = source,
                    changed = secondary.changed,
                    toInventory = secondary.id,
                    fromInventory = inventory,
                    items = secondary.items,
                    stashid = secondary.dbId
                }) then return false end
                secondary:closeInventory()
            end

            inventory:closeInventory(true)
        end
    end)

Add the delete function in

And last add this EventHook into in the same file ^^

After the line

Last updated