General Settings
All fuel system configuration options.
Framework & Database
| Option | Default | Description |
|---|---|---|
Config.framework | 'ESX' | Framework: 'ESX', 'QBCore', 'VRP' |
Config.sqlDrive | 'oxmysql' | SQL driver |
Config.speedType | "KMH" | Speed display: "KMH" or "MPH" |
Interaction Keys
| Option | Default | Description |
|---|---|---|
Config.Keys.Interact | 51 | Key for nozzle interactions (E) |
Config.Keys.PurchaseGasCan | 47 | Key for purchasing gas can (G) |
Fuel Prices
| Option | Default | Description |
|---|---|---|
Config.price.diesel | 25 | Price per liter for diesel |
Config.price.economic | 50 | Price per liter for economic |
Config.price.super | 100 | Price per liter for super |
Config.price.electric | 10 | Price per unit for electric |
Config.gasCanPrice | 50 | Jerry can purchase price |
General
| Option | Default | Description |
|---|---|---|
Config.wastingFuel | true | Waste fuel when spraying freely |
Config.pedType | "s_m_m_autoshop_01" | Gas station attendant ped model |
Config.checkVehicleDistance | 5 | Distance to check for vehicles |
Exports
These functions are exported for use by other resources:
lua
-- Get vehicle fuel level (0-100)
exports["code9_fuel"]:GetFuel(vehicle)
-- Set vehicle fuel level (0-100)
exports["code9_fuel"]:SetFuel(vehicle, fuel)
Locale
All UI text and notifications are configurable in shared/transaction.lua. The file contains labels for the payment UI (fuel type names, descriptions, button labels) and backend notification messages.
