> For the complete documentation index, see [llms.txt](https://alt0.gitbook.io/alt0-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alt0.gitbook.io/alt0-docs/getting-started/installing.md).

# Installing a script

Download your purchase and set up what every ALT0 script needs.

## 1. Download

When you buy on [alt0scripts.com](https://www.alt0scripts.com), you sign in with your Cfx.re account at checkout. The scripts are added to that account.

1. Sign in to [portal.cfx.re](https://portal.cfx.re) with the same account.
2. Open **Assets → Granted Assets**.
3. Download each script in your package. For example, ALT0 MDT comes with `alt0-mdt` and `alt0-dispatch`.

## 2. Use a license key from the same account

Your server's license key (`sv_licenseKey` in `server.cfg`) must belong to the Cfx.re account that bought the script. Create it on that account under **portal.cfx.re → Servers**.

If the server console says `You lack the required entitlement`, the key comes from a different account.

## 3. Shared requirements

Most ALT0 scripts use the same base resources. Install them first and start them before any ALT0 script:

| Resource                                                                      | Used by                                                                                            |
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [ox\_lib](https://github.com/overextended/ox_lib)                             | Every script                                                                                       |
| [oxmysql](https://github.com/overextended/oxmysql)                            | MDT, Boosting, Bank, Camera                                                                        |
| [ox\_inventory](https://github.com/overextended/ox_inventory) or qb-inventory | MDT, Bank, Camera (on ESX, ox\_inventory). Boosting and Networks also work with other inventories. |
| [ox\_target](https://github.com/overextended/ox_target) or qb-target          | Bank ATMs, Camera printers                                                                         |
| Qbox (`qbx_core`), QBCore (`qb-core`) or ESX (`es_extended`)                  | MDT, Dispatch, Bank, Camera, Boosting. See [Frameworks](/alt0-docs/getting-started/frameworks.md). |

Each script's installation page lists exactly what it needs, plus its database file and items.

## 4. Start order

Put each script folder in your `resources` and add it to `server.cfg` after its requirements:

```cfg
ensure ox_lib
ensure oxmysql
ensure ox_inventory     # or qb-inventory
ensure qbx_core         # or qb-core / es_extended
ensure ox_target        # or qb-target

ensure alt0-dispatch
ensure alt0-mdt
ensure alt-zero
ensure alt0-networks
ensure alt0-boosting
ensure alt0-bank
ensure alt0-camerautils
```

Only add the ones you own. Keep the folder names as they are.
