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

# Installation

Install kaze\_phonepro, kaze\_lib and kaze\_sound and open your first phone.

## Requirements

| Requirement                               |                                                                                                                                                   |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [kaze\_lib](/kazescripts/kaze_lib.md)     | Free. Framework, inventory and database support all come from kaze\_lib. See [Supported resources](/kazescripts/kaze_lib.md#supported-resources). |
| [kaze\_sound](/kazescripts/kaze_sound.md) | Free. Calls, ringtones and music                                                                                                                  |
| `oxmysql`                                 | Database                                                                                                                                          |
| Server                                    | OneSync on                                                                                                                                        |

Optional: a Fivemanage API key so photos from the camera are uploaded and saved.

{% stepper %}
{% step %}

### Add the resources

Download **kaze\_phonepro**, **kaze\_lib** and **kaze\_sound** from the Cfx.re Portal and put the folders in your `resources` directory. See Installing your assets if this is your first KazeScripts purchase.
{% endstep %}

{% step %}

### Start order in server.cfg

```cfg
ensure oxmysql
ensure kaze_lib
ensure kaze_sound
ensure kaze_phonepro
```

{% hint style="warning" %}
`kaze_lib` and `kaze_sound` must start **before** kaze\_phonepro. kaze\_sound replaces pma-voice, so remove pma-voice from your server.cfg. See Migrating from pma-voice.
{% endhint %}
{% endstep %}

{% step %}

### Add the items

Add the 5 phone items and the `sim_card` item to your inventory and copy the images from `INSTALL/inv_img`. See [Items](/kazescripts/kaze_phonepro/items.md).
{% endstep %}

{% step %}

### Database

All tables are created automatically on first start, and older tables are upgraded. If your database user cannot create tables, import `sql/kaze_phone.sql` once.
{% endstep %}

{% step %}

### Photo uploads (optional)

Open `config.server.lua` and paste your Fivemanage key into `ServerConfig.Upload.ApiKey`. This file is only loaded on the server, so the key never reaches players.
{% endstep %}

{% step %}

### Test it

Give yourself a `phone` item and use it, or press **M**. The first boot runs the setup: profile photo, passcode, Face ID, wallpaper and ringtone.
{% endstep %}
{% endstepper %}
