Description
A gas-station ownership business for QBCore or QBox: the owner buys a station, sets a per-litre price within an allowed band, earns the margin on every refuel, and manages reserves that deplete with sales and replenish from a wholesale supplier. Servers buy it to give the growing ox_fuel fuel-economy an owner layer — every fill-up becomes player revenue.
Prompt Template
You are writing a FiveM resource for QBCore (exports['qb-core']:GetCoreObject()).
The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Expected Output
The reference Lua lives at content/expected-outputs/business/29-gas-station-ownership.lua. It implements a server-owned stations table keyed by station id, a refuel handler that checks reserves and…
The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Known Failure Modes & Corrective Prompt
- Client-computed cost — the client prices the refuel and pays itself, making fuel free; keep price, reserves, margin and vault server-side keyed by station id.
- Unclamped price — an owner sets an out-of-range price so refuels charge negative or absurd amounts; clamp server-side to an allowed band.
- One-sided notify —
gas:notifyon one side leaves the driver without a charge result; both sides useRegisterNetEvent+AddEventHandler.
Corrective re-prompt: "Compute the refuel cost as floor(litres * station.pricePerLitre) in server.lua after checking reserves and the driver's cash, bank the (price-WHOLESALE)*litres margin to the station vault, clamp gas:requestSetPrice into [WHOLESALE,20] and gate it plus gas:requestCollect on the owner — never trust a cost the client sends."
Framework Integration
- ESX: portable —
xPlayer.getMoney()/removeMoneyfor the cash charge,addAccountMoney('bank', amount)for the collect, key stations byidentifier. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject();Player.Functions.RemoveMoney('cash', cost)andAddMoney('bank', amount); read live fuel viaox_fuelexports. - QBox:
exports.qbx_core:GetPlayer(src)with the same accessors; hook the refuel intoox_fuel'sSetFueland persiststationstooxmysql.
Profit Potential
$320–$3500/mo on Tebex (expected ~$1100). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), sized for a rising fuel-economy niche.
Trend Signal
↗ rising — corpus: Rides ox_fuel (scraper-tracked ox resource); rising as fuel-economy servers grow.
Sales Angle
Position as the owner-economy layer that plugs straight into ox_fuel servers — every fill-up becomes player revenue. Recommended Tebex price $139.
Difficulty & Ship Time
intermediate · ships in 1-2 days.