Description
An ESX tax layer that sits on top of payday: when salaries are paid, the server skims a configurable percentage off each player's gross salary, pays them the net, and accumulates the collected tax into a government society account. Servers use this to fund public jobs or run an in-game treasury.
Prompt Template
You are writing a FiveM resource for esextended (with esxaddonaccount installed).
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/03-payday-tax-to-society.lua computes integer tax on gross salary, pays the net to each player's bank, accumulates the cut, and credits 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
- Float drift —
gross * 0.15produces fractional cents that desync player and society totals. Requiremath.floor. - Per-player society writes — opening the shared account once per player spams the API. Require one batched write of the summed tax.
- Double counting — paying gross then also taxing, or taxing net, mis-states income. Require tax-on-gross, pay-net.
- Missing addon dependency —
esx_addonaccountmust exist orgetSharedAccountreturns nil. Guard the callback for a nil account.
Integration Notes
Server-only logic in server.lua with a client.lua payslip notifier; declare both in fxmanifest.lua. Requires es_extended and esx_addonaccount (the society_gov account must be registered). Test by lowering PAY_INTERVAL, /setjob to a salaried role, and confirming bank rises by net while the society account rises by the summed tax.
Profit Potential
$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a rising economy niche.
Trend Signal
↗ rising — [INFERRED] banking/economy is core RP-server infrastructure, steady demand.
Sales Angle
Position as the treasury layer for serious RP economies — a configurable tax rate that funds public jobs and government society accounts without float drift. Recommended Tebex price: $59.
Difficulty & Ship Time
intermediate · ships in 2-4h.