# Storage

By default, every device in the AV Laptop system has a maximum storage capacity of 100 files, which includes folders, documents, and images.

You can easily adjust this limit either globally for all users, or individually for specific players and devices. To manage these limits, navigate to the server-side configuration file at `av_laptop/server.editable/_storage.lua`.

#### 1. Global Storage Limit

To change the default storage capacity for every device in the server, simply modify the `Config.MaxStorage` variable.

```lua
Config.MaxStorage = 100 -- Maximum amount of files any standard device can hold
```

#### 2. Custom Storage Limits (Per Player or Device)

If you want to grant specific players or specific devices a different storage capacity (for example, giving LSPD computers more space, or rewarding VIP players), you can use the `customStorage` table.

You can use either the player's framework identifier (like a Citizen ID) or the device's unique `serial` number as the index key.

```lua
local customStorage = {
    -- The key can be a player's identifier or a device's serial number
    ['SLI31388'] = 250, -- Example: Specific player gets 250 slots
    ['LSPD_DESK_01'] = 500, -- Example: A specific laptop gets 500 slots
}
```

#### How the Logic Works

When a device checks its available storage via the `getStorage(serial, owner)` function, it follows a strict priority order:

1. It first checks if the device's serial has a custom limit.
2. If not, it checks if the owner's identifier has a custom limit.
3. If neither is found in the `customStorage` table, it falls back to the default `Config.MaxStorage`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.av-scripts.com/laptop-pack-v3/laptop-v3/storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
