vi/raiser
business
business, GTA 6 style illustration
Vaultintermediatebusiness

Gas Station Ownership

QBCore/QBox fuel-station business where the owner sets a per-litre price, earns the margin on every refuel, and manages depleting reserves, all priced and settled server-side.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~109 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / morising
$1,100($320 to $3,500)

$50-389 script band, sized for a rising niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate1-2 days

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()).

🔒 Eyes-only, locked prompt body

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.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access, pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts, the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates, new niches as the market moves
Get the Vault, $199

$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…

🔒 Eyes-only, locked prompt body

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.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access, pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts, the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates, new niches as the market moves
Get the Vault, $199

$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:notify on one side leaves the driver without a charge result; both sides use RegisterNetEvent + 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() / removeMoney for the cash charge, addAccountMoney('bank', amount) for the collect, key stations by identifier.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); Player.Functions.RemoveMoney('cash', cost) and AddMoney('bank', amount); read live fuel via ox_fuel exports.
  • QBox: exports.qbx_core:GetPlayer(src) with the same accessors; hook the refuel into ox_fuel's SetFuel and persist stations to oxmysql.

Profit Potential

$320-$3500/mo on Tebex (expected ~$1100), within the $50-389 script band against a corpus of comparable Tebex sellers (median ~$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.