Inventory

You are in the Inventory Documentation

B-Inventory

Buy

Preview

Info

Please configuerate your Config and insert all SQL's before you open a Ticket on our Discord. Discord-Server

Documentation

Open secondary inventory

TriggerEvent('b-inventory:openSecond', data, slotSave)-- It's a client event
Parameter
Type
Example

data

[object] | [array]

slotSave

boolean

true or false

Create secondary inventory

function open_secondary()
   currentSecondInv = NewSecondInventory({
        type = "lager",
        name = 'Lager',
        slots = 10,
        maxWeight = 100,
        description = {
            text = 'Lager',
            icon = 'lager.svg'
        },
        owner = 'player'
    })

    currentSecondInv.open({
        saveSlots = true
    })
end
-- this function below is for testing ofc
function secondar_additem(label, name, count, weight)
    currentSecondInv.addItem({
        name = name,
        label = label,
        count = count,
        weight = weight
    }, {
        saveInDb = true
    })
end

Playersearch Trigger

TriggerEvent("b-inventory:searchPlayer", target_source)

Last updated

Was this helpful?