> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_fuel/faq.md).

# FAQ

<details>

<summary>How to add new fuelstation?</summary>

You can follow this video guide to set up new fuelstation.

{% embed url="<https://youtu.be/687Nkmc8IA4?si=7EiI2CcpY4Lg3R3o>" %}
New fuelstation
{% endembed %}

</details>

<details>

<summary>How to change fuel type for vehicle?</summary>

#### Location

This configuration is located in `rcore_fuel/config/fuel_config.lua`.

#### Vehicle Fuel Type Configuration

The configuration is managed within the `Config.VehicleFuelType` array.

#### Structure

The array structure consists of:

* `model`: The spawn model of the vehicle.
* `fuelType`: The fuel type for the specific model.

Example of a new entry:

```lua
	{
	    model = "myCar",
	    fuelType = FuelType.NATURAL,
	}
```

To find all types for the `FuelType` array, refer to the file located at `rcore_fuel/const.lua`. Look for the following array:

```lua
	FuelType = {
	    NATURAL = 1,
	    DIESEL = 2,
	    EV = 3,
	    LPG = 4,
	    CNG = 5,
	    MILK = 6,
	    AVIATION = 7,
	}

```

#### Example of the "VehicleFuelType"

```lua
	Config.VehicleFuelType = {
	    -- entry 1
	    {
	        model = "tesla",
	        fuelType = FuelType.EV,
	    },
	    -- entry 2
	    {
	        model = "phantom3",
	        fuelType = FuelType.DIESEL,
	    },
	    -- entry 3
	    {
	        model = "pavel",
	        fuelType = FuelType.MILK,
	    },
	}
```

There is also the possibility to configure the fuel type for a specific vehicle class in the same config file mentioned above by using `Config.SpecificFuelTypePerVehicleClass`.

```lua
	Config.SpecificFuelTypePerVehicleClass = {
	    [0] = { FuelType.DIESEL, FuelType.NATURAL }, -- Compacts
	}
```

This will enforce either diesel or natural gas as the fuel type for the "compacts" class. If you wish to enforce only one specific fuel type, it can be done as follows:

```lua
	Config.SpecificFuelTypePerVehicleClass = {
	    [0] = { FuelType.NATURAL }, -- Compacts
	}
```

Now, all compacts will run only on natural gas.

</details>

<details>

<summary>How to change fuel capacity for vehicle?</summary>

#### Location

This configuration is located in `rcore_fuel/config/fuel_config.lua`.

#### Vehicle Fuel Capacity Configuration

The configuration is managed within the `Config.CustomFuelCapacity` array.

#### Structure

The array structure consists of:

* `model`: The spawn model of the vehicle.
* `maxFuel` Maximum fuel capacity for the model

Example of a new entry:

```lua
	{
	    model = "myCar",
	    maxFuel = 999,
	}
```

#### Example of the "CustomFuelCapacity"

```lua
	-- custom list with custom values for each car you want
	Config.CustomFuelCapacity = {
	    -- entry 1
	    {
	        model = "phantom3",
	        maxFuel = 300,
	    },
	    -- entry 2
	    {
	        model = "anotherCar",
	        maxFuel = 10,
	    },
	}
```

</details>

<details>

<summary>How to set fuel station to be ownable?</summary>

In `rcore_fuel/config/shop_config.lua` every fuel station you wish to be owned by player you will need to enable this specific option.

![](/files/S0aAlhkfYQbgF2112X61)

After the `EnableBuyingCompany` will be set to true the specific company blip will be colored green on your map.

![](/files/7OozuExh9RsOh33yP72B)

In game you will be able to see this marker with price of the company above.

![](/files/21Oj8xBv5LX8IVPs1xA2)

This is how the buying looks like.

#### How to buy company

{% embed url="<https://youtu.be/2-dP2fTadBc?si=5fysP7kdAxz3rZRt>" %}
How to buy company
{% endembed %}

After you buy the company it will be colored "red" on your map to indicate that you own this company.

![](/files/sHqihmO18DYRTQhkIQZa)

</details>

<details>

<summary>How to change gas price?</summary>

There are two ways to change the price of gas.

#### For state-owned gas stations (Players cannot buy these stations)

To change the price for state-owned gas stations, go to `rcore_fuel/config/shop_config.lua`. For each gas station where you want to change the fuel price, edit these values:

```lua
        gasPrices = {
            [FuelType.NATURAL] = 50,
            [FuelType.DIESEL] = 50
        },
```

After making the changes, restart the script to apply the new fuel prices in the game.

#### For stations that can be owned by players (Even if nobody owns them yet)

Go to the gas station in the game where you want to change the gas price. Use the command `/fuelcompanydebug` in game and this will display information about the gas station you are standing at.

![](/files/5dRiIlmYLBYDKym2lBfz)

Once you know which gas station you are dealing with, use the following server command in your live console: `SetGasPrice`

![](/files/w19KJb80XN0f4gjaC9Ln)

For example, by entering the command SetGasPrice fuel\_pump24 1 999, you change the gas price to $999.

![](/files/C3uKWXEvCjv90axXHnvz)

The new price takes effect immediately in the game.

</details>
