---
description: HRLib Callbacks that provide several
---

# Callbacks

### getAllStorages

returns an array with all the created storages in the server

<pre class="language-lua"><code class="lang-lua"><strong>local storages = HRLib.Callback('HRStorages:getAllStorages') -- Server Side
</strong><strong>local storages = HRLib.ServerCallback('HRStorages:getAllStorage') -- Client Side
</strong><strong>
</strong><strong>--[[ Result format:
</strong><strong>{
</strong><strong>    {
</strong><strong>        stashId = 'storages_0123534234',
</strong><strong>        owner = 'license:0000',
</strong><strong>        owner_name = 'James',
</strong><strong>        creation_date = '05/05/2005 | 13:25',
</strong><strong>        position = {
</strong><strong>            x = 0.0,
</strong><strong>            y = 0.0,
</strong><strong>            z = 0.0,
</strong><strong>            w = 0.0
</strong><strong>        },
</strong><strong>        loot = 'json encoded array of all the items stored in the storage'
</strong><strong>    }
</strong><strong>}
</strong><strong>]]
</strong></code></pre>
