vi/raiser
economy
economy, GTA 6 style illustration
Coreintermediateeconomy

Tax System, Payday Cut to a Society Fund

ESX income tax that takes a percentage of each payday salary and routes the collected tax into a government society account.

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

Unlock 48 core prompts

Profit potential / morising
$900($250 to $3,500)

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

Effort vs return
intermediate2-4h

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

🔒 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/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…

🔒 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

  • Float drift, gross * 0.15 produces fractional cents that desync player and society totals. Require math.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_addonaccount must exist or getSharedAccount returns 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), priced inside the $50-389 standalone-script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo) for a rising economy niche.

Trend Signal

↗ rising, 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.