Client

Client sided exports

getStorages

Returns an array of all existing storages, owned by the current client (player)

local playerStorages = exports.HRStorages:getStorages()

--[[ Result format:
{
    {
        stashId = 'storages_123423453456',
        owner = 'license:00000',
        owner_name = 'playerName',
        creation_date = 'dd/mm/yy | HH:MM',
        position = {
            x = 0.0,
            y = 0.0,
            z = 0.0,
            w = 0.0
        }
        loot = 'json encoded array with all the items stored in the storage'
    },
    ....
}
]]

Last updated