> For the complete documentation index, see [llms.txt](https://atascripts.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://atascripts.gitbook.io/docs/resource/xvi-phone/installation.md). Agents can also search and read this documentation through its [MCP server](https://atascripts.gitbook.io/docs/~gitbook/mcp).

# Installation

Go from a fresh download to a working phone in a few minutes.

## Before you start

Make sure your server has these running:

| Requirement                  | Why it's needed                           |
| ---------------------------- | ----------------------------------------- |
| **ESX, QBCore or Qbox**      | Players, jobs and money                   |
| **oxmysql**                  | Saves messages, contacts, photos and more |
| **pma-voice**                | Phone and video calls                     |
| **OneSync**                  | Lets players see each other's phones      |
| **Fivemanage account**       | Stores photos and videos                  |
| **ox\_inventory** (optional) | Makes the phone a real item               |

## Setup

{% stepper %}
{% step %}

### Add the resource

Download XVI Phone from the [Cfx Portal](https://portal.cfx.re) and put the `ata_phone` folder inside your `resources` folder.

{% hint style="warning" %}
Keep the folder name as `ata_phone`. The exports and inventory items use that exact name.
{% endhint %}
{% endstep %}

{% step %}

### Update your server.cfg

Start the phone **after** your framework, database, voice and bank scripts:

```properties
set ata_phone_fivemanage_key "YOUR_FIVEMANAGE_TOKEN"

ensure oxmysql
ensure es_extended
ensure pma-voice
ensure ox_inventory
ensure ata_phone
```

Using QBCore or Qbox? Swap `es_extended` for `qb-core` or `qbx_core`.
{% endstep %}

{% step %}

### Set up your inventory

Add the five phone items, or let everyone use the phone without one. Follow the [Inventory Setup](https://atascripts.gitbook.io/docs/resource/xvi-phone/installation/inventory-setup.md) guide.
{% endstep %}

{% step %}

### Connect Fivemanage

The Camera, Gallery, Snapmatic and News apps need this to save media. Follow the [Fivemanage](https://atascripts.gitbook.io/docs/resource/xvi-phone/installation/fivemanage.md) guide.
{% endstep %}

{% step %}

### Start your server

There's no SQL file to import. XVI Phone creates its own tables on the first start. On ESX, it also adds a `phone_number` column to `users` if you don't have one.
{% endstep %}

{% step %}

### Test it

Join your server, give yourself a phone and press **F1**. You'll land on the Welcome screen, where you pick a name, avatar, wallpaper and ringtone.

```
/giveitem 1 ata_phone_silver 1
```

The exact command depends on your framework and admin menu.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
That's it. Next, make it yours in the [Config File](https://atascripts.gitbook.io/docs/resource/xvi-phone/config-file.md).
{% endhint %}
