# Installation

1. Download the latest version from [keymaster.fivem](https://keymaster.fivem.net/login?return_url=/)&#x20;
2. Copy the d-phone resource to your server's resource folder.
3. Install the d-logging resource from <https://github.com/DeunService/d-logging> and add it to your server's resources.
4. Import the esx.sql or qb.sql ( based if youre using esx or qb ) file into your database to create the necessary tables.
5. ESX ONLY: Follow the instructions in the AmbulanceJob Page to set up the business app for your ambulance job. Make sure to replace "yourambulancejoblabel" in the function with your actual job label.
6. Set the jobs that you want to have a business app in your **database in the jobs** or for **QBCore** in the **phone\_business** table. \
   Set hasapp = 1 to give the job a business app. \
   If onlyboss = 1 and hasapp = 1, only the boss will have the app. \
   Set handyservice = 1 to show the job in the service app. \
   Set number = 1 to use the default phone number for the service. You can change this to a different number if you prefer.
7. If you need to replace any of the locales, update them in the config file and in the html > js > locales.js file. There are also some locales in the js > locales folder.
8. If you haven't already, install the screenshot-basic resource from <https://github.com/citizenfx/screenshot-basic>, it would be good if you also update webpack and yarn from <https://github.com/citizenfx/cfx-server-data>
9. Set your discord webhooks in the *serverconfig.lua*

{% embed url="<https://youtu.be/ig67L71Ajiw>" %}
