# qs-inventory

* Add the following code at the end of the file

{% code title="qs-inventory/server/custom/misc/SaveInventory.lua" %}

```lua
RegisterServerEvent('qs-inventory:server:SaveStashItems', function(id, items)
	if not Stashes[id] then Stashes[id] = {} end
	Stashes[id].items = items
	SaveStashItems(id, Stashes[id].items)
end)
```

{% endcode %}
