Description
A QBCore salary-tier definition resource: it owns one table mapping job and grade to a salary, exposes a GetSalary export for the paycheck system to call, lets a player check their own tier with /salary, and gives admins a restricted /setsalary to tune values live. Centralising salaries here keeps the numbers in one place instead of scattered across scripts.
Prompt Template
You are writing a FiveM resource for qb-core.
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/07-salary-tiers-per-grade.lua defines the tier table, a numeric getSalary with grade-0 fallback, a GetSalary export, a salary:mine callback, anβ¦
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
- Scattered numbers β inlining salaries at each call site makes tuning impossible. Require one table behind a
GetSalaryexport. - String grade keys β
grade.levelis numeric; string keys never match. Require numeric indexing. - Open admin command β an ungated
/setsalaryis a self-enrichment exploit. Require the"admin"permission inQBCore.Commands.Add. - Unknown-grade crash β no fallback errors on a new grade. Require
tier[grade] or tier[0] or 0.
Integration Notes
server.lua owns the table/export/admin command; client.lua is just /salary. Declare both in fxmanifest.lua; depends on qb-core. The paycheck resource calls exports['salary-tiers']:GetSalary(job, grade). Test: /salary as a graded cop shows the right tier; /setsalary police 2 999 as admin updates it; the same command as a non-admin is rejected.
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 economy infrastructure for QBCore/QBox β every paycheck reads one salary table through an export, and admins retune grades live without a restart. Recommended Tebex price: $59.
Difficulty & Ship Time
intermediate Β· ships in 2-4h.