# 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',
} 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/frkn-fuelv4/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
