Description
A business payroll engine: employees clock in, and a server timer disburses a wage to each clocked-in worker from their employer's business account, recording every payment in a ledger and halting when the account empties. It is the money layer under a custom job system — the piece that lets player-owned businesses actually run a staffed economy. Servers selling job frameworks need exactly this to make ownership feel real.
Prompt Template
You are writing a FiveM resource for qb-core (QBox-compatible).
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 at content/expected-outputs/economy/24-business-payroll-clock-in.lua tracks clocked-in workers by citizenid, runs a server pay timer that re-resolves each worker, checks the…
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-requested pay — if the client triggers payment, an employee mints wages on demand. The disbursement loop is server-only.
- Disconnect desync — a stale
srcheld across ticks errors or double-pays. Re-resolve by citizenid each cycle. - No balance check — paying from an empty business account drives it negative. Gate every wage on
balance >= WAGE.
Corrective re-prompt: Move all wage disbursement into the server CreateThread timer keyed by citizenid, re-resolve each worker with GetPlayerByCitizenId every tick, and refuse to pay when the business account balance is below the wage so it can never go negative.
Framework Integration
- ESX: port
GetPlayer/AddMoneytoESX.GetPlayerFromId/addAccountMoney("bank", ...)and read the business viaesx_addonaccountshared accounts. - QBCore: native —
qb-bankingexports for the business account andPlayer.Functions.AddMoney("bank", ...)as shown. - QBox: drop-in via
exports.qbx_core:GetPlayer; keepqb-banking(orox_banking) for the business balance.
Profit Potential
$250–$3,500/mo on Tebex (expected ~$950). [INFERRED] priced in the $50-389 script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo); a rising money layer for the top job-system launch lane.
Trend Signal
↗ rising — strategy: Money layer of the #1 launch lane (custom job systems) — niche-selection.md §3 #1 + niches.md Niche 4 (id-001 5-role job system); boss/management skews qb/qbox.
Sales Angle
Sell it as the wage engine that makes a custom job system worth owning — the bolt-on bosses ask for. Mid-to-upper band, ~$120-179 standalone, more inside a job-framework bundle.
Difficulty & Ship Time
intermediate · ships in 1 day.