Skip to main content

General Settings

Framework, fuel pricing, consumption, and locale configuration

This section

General Settings

All fuel system configuration options.

Framework & Database​

OptionDefaultDescription
Config.framework'ESX'Framework: 'ESX', 'QBCore', 'VRP'
Config.sqlDrive'oxmysql'SQL driver
Config.speedType"KMH"Speed display: "KMH" or "MPH"

Interaction Keys​

OptionDefaultDescription
Config.Keys.Interact51Key for nozzle interactions (E)
Config.Keys.PurchaseGasCan47Key for purchasing gas can (G)

Fuel Prices​

OptionDefaultDescription
Config.price.diesel25Price per liter for diesel
Config.price.economic50Price per liter for economic
Config.price.super100Price per liter for super
Config.price.electric10Price per unit for electric
Config.gasCanPrice50Jerry can purchase price

General​

OptionDefaultDescription
Config.wastingFueltrueWaste fuel when spraying freely
Config.pedType"s_m_m_autoshop_01"Gas station attendant ped model
Config.checkVehicleDistance5Distance 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.