> For the complete documentation index, see [llms.txt](https://shift-studios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shift-studios.gitbook.io/docs/new/editor-26.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Storage Units

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2FO7s8LwB6584xf1pwEY1U%2F8e1d5822-428e-4210-b678-cf05eba01f50.png?alt=media&amp;token=6dfb47b5-4ff0-4ad4-a144-e06c936acda1" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Storage Units

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-storage In Your Server CFG.
{% endstep %}

{% step %}

### Install The SQL Table

```sql
CREATE TABLE IF NOT EXISTS `shift_storage_units` (
  `unit_id` VARCHAR(12) NOT NULL,
  `owner_id` VARCHAR(100) NOT NULL,
  `tier` VARCHAR(24) NOT NULL,
  `purchased_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`unit_id`),
  KEY `owner_id` (`owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```

{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

You Can Configure Your Discord Logs In server/config.discord.lua

You Can Also Configure More Locations / Units In The units.lua File

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

-- Set to 'auto' or choose explicitly.
Config.Framework = 'auto'    -- auto | qbx | qb | esx
Config.Inventory = 'auto'    -- auto | ox | qb | qs | ps | custom
Config.Target = 'auto'       -- auto | ox | qb | qtarget | none
Config.Notify = 'auto'       -- auto (prefers ox_lib) | ox | qb | esx | okok | mythic | custom
Config.NotificationPosition = 'center-left'
Config.PaymentAccount = 'bank' -- bank | cash (ESX/QB/Qbox)
Config.InteractKey = 38        -- E fallback without a target system
Config.InteractDistance = 2.3
Config.ServerPurchaseDistance = 4.0
Config.ServerDoorDistance = 4.0
Config.AllowMultipleUnitsPerPlayer = true
-- Storage Manager access: grant ANY listed framework group or ACE permission.
-- QBCore checks QBCore.Functions.HasPermission (god/admin/mod, etc.).
-- ESX checks xPlayer.getGroup().
-- Qbox / standalone checks the matching server-side ACE objects (god/admin/mod, etc.).
-- Edit the list to restrict which staff ranks can run /storagemanager.
Config.AdminGroups = {
    'god',
    'admin',
    'mod',
    'superadmin',
    'owner',
}

-- Optional dedicated ACE override (also supported for every framework).
-- Example: add_ace group.admin shiftstorage.admin allow
-- Set to '' to disable the dedicated ACE override.
Config.AdminAce = 'shiftstorage.admin'
Config.ShowOwnedBlips = true
Config.ShowAvailableBlips = false -- private by default; does not display public unit blips
Config.Blip = { sprite = 478, colorOwned = 3, colorAvailable = 0, scale = 0.58 }
Config.Ped = {
    model = 's_m_m_dockwork_01',
    coords = vec4(-43.8862, -1231.4580, 29.3350, 273.6388),
    scenario = 'WORLD_HUMAN_CLIPBOARD',
}
Config.PedTargetDistance = 2.0
Config.DoorTarget = { width = 1.5, length = 1.5, height = 2.2 }

-- Weights are KG here, converted to grams for inventory APIs.
Config.Tiers = {
    compact =  { label = 'Compact',  weight = 50,  slots = 30, price = 5000 },
    standard = { label = 'Standard', weight = 125, slots = 50, price = 12500 },
    premium =  { label = 'Premium',  weight = 250, slots = 80, price = 25000 },
}
Config.TierOrder = {'compact', 'standard', 'premium'}
Config.Locale = {
    title = 'Storage Units',
    noAccess = 'You do not own this storage unit.',
    sold = 'This storage unit is no longer available.',
    bought = 'Storage unit purchased successfully.',
    insufficient = 'Insufficient funds for this purchase.',
    waypoint = 'GPS waypoint set for your storage unit.',
    unavailable = 'Storage is currently unavailable.',
    tooFar = 'You are too far away to do that.',
    alreadyOwn = 'You already own this storage unit.',
    purchaseFailed = 'Purchase failed. You have not been charged.',
    adminDenied = 'You do not have access to Storage Manager.',
    adminUpdated = 'Storage unit updated successfully.',
    adminReleased = 'Storage unit released successfully.',
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
