# Configuration

## Config

Complete config.lua

***

### Basics

#### Language

```lua
Config.Language = 'en'
```

| Value | Description |
| ----- | ----------- |
| `en`  | English     |
| `de`  | German      |

### OX

```lua
Config.UseOxTarget     = false        
Config.UseOxTextUI     = true         
```

<table><thead><tr><th>Function</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.UseOxTarget
</code></pre></td><td><em><strong>If true then use alt button to open ui</strong></em><br><em><strong>If false then use E to open ui</strong></em></td></tr><tr><td><pre><code>Config.UseOxTextUI
</code></pre></td><td><em><strong>If true then use OxLib Text UI</strong></em><br><em><strong>If false then use standart UI Helpnotify</strong></em></td></tr></tbody></table>

### Interact

```lua
Config.InteractKey     = 38
```

{% hint style="info" %}
Keybinds your find at <https://docs.fivem.net/docs/game-references/controls/>
{% endhint %}

### Admin

```lua
Config.AdminGroups  = { "admin", "superadmin" }
```

### Currency

```lua
Config.CurrencySymbol  = '$'
Config.CurrencyAfter   = false       
```

<table><thead><tr><th>Variable</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.CurrencyAfter   = false  
</code></pre></td><td><em><strong>$50</strong></em></td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.CurrencyAfter   = true 
</code></pre></td><td><em><strong>50$</strong></em></td></tr></tbody></table>

### FuelHud

```lua
Config.ShowFuelHud     = false 
```

<table><thead><tr><th>Variable</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.ShowFuelHud     = false 
</code></pre></td><td><em><strong>Using HUD fuel state</strong></em></td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.ShowFuelHud     = true 
</code></pre></td><td><em><strong>Using fuel hud from the Script</strong></em></td></tr></tbody></table>

### RefuelProgressbar (OxLib)

```lua
Config.ShowProgressBar        = true   -- Show progress bar while refueling
Config.RefuelDurationPerLiter = 120    -- Milliseconds per liter (120 = ~12s for a full tank)
Config.RefuelDurationMin      = 3000   -- Minimum duration in ms
Config.RefuelDurationMax      = 30000  -- Maximum duration in ms
```

### Payments

```lua
Config.AllowCashPayment    = true        -- Cash payment allowed
Config.AllowCardPayment    = true        -- Card payment allowed
```

### Fuel settings

```lua
Config.MaxFuel         = 100.0
Config.DefaultFuel     = 80.0
Config.StartFuelMin    = 60.0
Config.StartFuelMax    = 95.0
Config.LowFuelWarning  = 15.0        -- Warning triggers at this value
Config.SyncInterval    = 30.0        -- Seconds between DB syncs

Config.FuelConsumption = {
    base  = 0.008,   -- Consumption per second during normal driving
    idle  = 0.0004,  -- Idle consumption per second
    boost = 1.8,     -- Multiplier at high RPM
}
```

### Fuel prices

```lua
Config.FuelPrices = {
    regular = 200.0,
    premium = 280.0,
}
```

### Fuel Types

```lua
Config.FuelTypeNames = {
    regular = 'Benzin',
    premium = 'Benzin Premium',
}
```

<table><thead><tr><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">regular = 'Benzin',
</code></pre></td><td>Normal usage</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">premium = 'Benzin Premium',
</code></pre></td><td>Holding longer</td></tr></tbody></table>

<details>

<summary>Consumption</summary>

```lua
Config.FuelConsumptionMultiplier = {
    regular = 1.0,
    premium = 0.70,   -- Premium hält ~43% länger als normales Benzin
}
```

</details>

### OXInventory (Canister)

```lua
Config.CanisterItem        = 'fuel_canister'
Config.CanisterMaxLiter    = 20.0
Config.CanisterFillPrice   = 40.0   -- Price for a full canister
Config.CanisterFillDuration = 5000   -- Duration of the filling animation (in ms)
Config.CanisterPourDuration = 60000  -- Duration of the pouring process (via progress bar) (in ms)
Config.CanisterPourSpeed ​​  = 8.0    -- Liters per second when pouring
```

### 3DText

```lua
Config.Use3DText        = true
Config.TextDrawDistance = 14.0
```

{% hint style="info" %}
Displays the standard price at the pump.
{% endhint %}

### Blip

```lua
Config.Blip = {
    enabled    = true,
    sprite     = 361,
    color      = 17,
    scale      = 0.62,
    name       = 'Fuel station',
    shortRange = true,
}
```

### stations.js

```lua
[] -- create stations with /createfuelstation and blip with /fuelblip
```

### Auto prop detection

```lua
Config.FuelProps = {
    'prop_gas_pump_old2',
    'prop_gas_pump_1a',
    'prop_gas_pump_1b',
    'prop_gas_pump_1c',
    'prop_gas_pump_1d',
    'prop_gas_pump_old1',
    'prop_vintage_pump_1a',
    'prop_vintage_pump_1b',
    'prop_gas_pump_anim',
    'z_prop_plat_gas_pump',
    'prop_0ng_gas_pump_01',
}

Config.PropScanRange = 25.0 -- Radius for prop search (meters)
Config.InteractDistance = 4.5 -- Maximum distance for interaction
```

### Vehicle exclusions

```lua
Config.VehicleExclusions = {
    'bmx', 'cruiser', 'fixter', 'scorcher', 'tribike', 'tribike2', 'tribike3',
    'inductor', 'lectro', 'surge', 'voltic', 'imorgon', 'cyclone', 'raiden',
    'kanjo', 'faggio', 'faggio2', 'faggio3', 'nemesis', 'pcj', 'thrust',
}
```

{% hint style="info" %}
Vehicles that do not use fuel
{% endhint %}


---

# 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://varixcode.gitbook.io/varixcode/varixcode-series/vlrixcode-fuel/configuration.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.
