# Installation

## Depencedies

You need to use polyzone and target

{% hint style="danger" %}
frkn-fuelstationv4 is a script designed to simulate a fuel station system in your FiveM server. It allows players to refuel their vehicles at designated fuel stations. This guide will walk you through the installation process step by step.
{% endhint %}

## Step 1: Starting the Script and SQL Query

* Start by adding the frkn-fuelstationv4 script to your FiveM server's resources folder.
* Sql is installed automatically, you don't need to do anything for it.

## Step 2: Reviewing the Configuration

* Before proceeding, carefully review the configuration file (`config.lua`) included with the script.
* Ensure that all settings are configured according to your preferences and server setup.

## Step 3: Setting Your Framework

* For the framework, if you are using qb or esx you don't need to do anything. If you are using a custom framework, you can edit everything from open source core files

## Step 4: Downloading the PolyZone Script

* frkn-fuelstationv4 relies on the PolyZone script for defining interaction zones. Download the PolyZone script from [here](https://github.com/mkafrin/PolyZone).
* Install and start the PolyZone script according to its installation instructions.

## Step 5: Downloading and Installing Interact Sound Script

* If you wish to add audio effects to the fuel station interactions, download and install the Interact Sound script from [here](https://github.com/plunkettscott/interact-sound).
* Place the sound files for the fuel station interactions in the `client/html/sounds` directory of your server's resources folder.
* Refer to the provided sound files or add your custom sound files.
* Modify the `fxmanifest.lua` file of the Interact Sound script to include the sound files. See the example provided below:

```lua
files {
    'client/html/index.html',
    -- Begin Sound Files Here...
    'client/html/sounds/demo.ogg',
    'client/html/sounds/chargestop.ogg',
    'client/html/sounds/charging.ogg',
    'client/html/sounds/fuelstop.ogg',
    'client/html/sounds/pickupnozzle.ogg',
    'client/html/sounds/putbackcharger.ogg',
    'client/html/sounds/putbacknozzle.ogg',
    'client/html/sounds/refuel.ogg',
} 
```
