> 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-self-storage/editable-files.md).

# Editable files

Client Editable.lua

```lua
RegisterNetEvent('tgiann-self-storage:open')
AddEventHandler('tgiann-self-storage:open', function(index)
    local name = "selftrorage"..index
    if config.framework == "qb" then
        TriggerEvent("inventory:client:SetCurrentStash", name, tgiCore.core.Key)
        TriggerServerEvent("inventory:server:OpenInventory", "stash", name, config.storages[index].stash)
    elseif config.framework == "esx" then
        local ox_inventory = exports.ox_inventory
		if ox_inventory:openInventory('stash', name) == false then
			TriggerServerEvent('tgiann-self-storage:oxStash', name, config.storages[index].stash)
			ox_inventory:openInventory('stash', name)
		end
    end
end)
```
