> For the complete documentation index, see [llms.txt](https://tgiann.gitbook.io/tgiann/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgiann.gitbook.io/tgiann/scripts/tgiann-house/stash-function.md).

# Stash Function

#### Chezza Inventory

```lua
function houseStorage()
    local name = "House"..string.gsub(enteredHouse.name, "%s+", "")
    TriggerEvent('inventory:openInventory', {
        type = "stash",
        id = name,
        title = name.." Stash",
        weight = Config.QBStorageData[enteredHouse.star or 1].maxweight,  -- set to false for no weight
        delay = 0, -- open delay for the roleplays :)
        save = true -- save to database
    })
end
```

{% embed url="<https://chezza.gitbook.io/chezza-studios/inventory/events/inventory-openinventory>" %}

#### mf-inventory

```lua
function houseStorage()
    local name = "House"..string.gsub(enteredHouse.name, "%s+", "")
    exports["mf-inventory"]:openOtherInventory(name )
end
```

#### Quasar inventory

```lua
function houseStorage()
    local name = "House"..string.gsub(enteredHouse.name, "%s+", "")
    TriggerServerEvent("inventory:server:OpenInventory", "stash", "Stash"..name)
    TriggerEvent("inventory:client:SetCurrentStash", "Stash"..name)
end
```
