gta6/prompts
economy
Vaultintermediateeconomy

Business Payroll — Clock-In Wage Disbursement

QBCore/QBox payroll that auto-pays clocked-in employees from a business account on a server timer, keeping a wage ledger and stopping when the account runs dry.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~68 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

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

🔒 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/24-business-payroll-clock-in.lua tracks clocked-in workers by citizenid, runs a server pay timer that re-resolves each worker, checks the…

🔒 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-requested pay — if the client triggers payment, an employee mints wages on demand. The disbursement loop is server-only.
  • Disconnect desync — a stale src held 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/AddMoney to ESX.GetPlayerFromId/addAccountMoney("bank", ...) and read the business via esx_addonaccount shared accounts.
  • QBCore: native — qb-banking exports for the business account and Player.Functions.AddMoney("bank", ...) as shown.
  • QBox: drop-in via exports.qbx_core:GetPlayer; keep qb-banking (or ox_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.