vi/raiser
economy
economy, GTA 6 style illustration
Vaultintermediateeconomy

Invoices, Society Billing Terminal

QBCore society billing where employees issue invoices a target pays later from bank, routing a configurable cut to the job account and the rest to the worker.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~81 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 / mosaturated
$300($80 to $1,200)

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

Effort vs return
intermediate2-4h

Description

A society billing terminal: an on-duty employee issues an invoice to a target player, who pays it later from their bank, with a configurable cut routed to the job's society account and the remainder paid to the worker. Servers buy it as a standalone, phone-agnostic billing layer when they are not running one of the heavy all-in-one phone resources.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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 at content/expected-outputs/economy/21-invoice-billing-society-terminal.lua stores invoices server-side, validates the payer is the addressee with sufficient bank funds, charges…

🔒 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

  • Money from nothing, paying out before the charge clears; debit the payer first, then split.
  • Wrong-payer pay, trusting the client invoiceId; verify inv.to matches the payer's citizenid.
  • Client-side cut, worker skips the society; compute the cut with server math.floor.

Corrective re-prompt: "Charge the payer's bank and confirm it covers the invoice before crediting anyone, reject payment unless inv.to matches the payer's citizenid, and compute the society cut server-side with math.floor."

Framework Integration

ESX: use ESX.GetPlayerFromId, the bank account via getAccount/removeMoney, and your society module (e.g. TriggerEvent('esx_society:addMoney', ...)). QBCore: as written, GetPlayer, GetPlayerByCitizenId, RemoveMoney/AddMoney, qb-banking for the society account. QBox: resolve via exports.qbx_core:GetPlayer; route the society cut through your accounts resource of choice.

Profit Potential

$80-$1200/mo on Tebex (expected ~$300), priced in the $50-389 script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo), scaled to a saturated-niche unit estimate.

Trend Signal

↘ saturated, corpus: Billing/invoices ship in nearly every framework phone (qb-phone, ox); scraper flags this as a saturated cat:economy staple.

Sales Angle

A standalone, phone-agnostic billing terminal for servers not on the heavy all-in-one phones. Recommended Tebex price: $59.

Difficulty & Ship Time

intermediate · ships in 2-4h.