The economy of a roleplay server runs on four parts: jobs with grades, a paycheck per grade, company money (in ESX: society) and bills. ESX keeps jobs in the database, Qbox and QBCore in a Lua file. Below is the situation in November 2026, with the default files from the txAdmin recipes. Still choosing a framework? Then first read ESX, QBCore or Qbox.
Make a backup first and export your database with Export Database: a backup doesn't contain your database.
ESX Legacy
Jobs are in the tables jobs and job_grades. This adds a job with two grades, plus an account for the company:
INSERT INTO jobs (name, label) VALUES ('burgershot', 'Burger Shot');
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('burgershot', 0, 'employee', 'Employee', 50, '{}', '{}'),
('burgershot', 1, 'boss', 'Manager', 100, '{}', '{}');
INSERT INTO addon_account (name, label, shared) VALUES ('society_burgershot', 'Burger Shot', 1);
- Run the lines in HeidiSQL, or save them as a .sql file and import it with Import Database and Merge, as in Connect a database.
- Restart your server.
- Give someone the job in the console with
setjob 1 burgershot 0, using the ID txAdmin shows for the player.
- Paychecks: every grade pays its
salaryinto the bank. You set how often underConfig.PaycheckIntervalines_extended/shared/config/main.lua: by default7 * 60000milliseconds, so every 7 minutes. Players who are off duty get half. - Company money: esx_society uses the account
society_plus the job name, the last line above. The job's own script has to register the society, as esx_policejob does for the police. That script also opens the boss menu for grades namedboss: hiring, firing, promoting and changing salaries. WithConfig.EnableSocietyPayouts = truein the same config file, salaries then come out of that account. Is there too little on it? Then employees get nothing. - Bills: with esx_billing, jobs send bills, such as police fines. Players see and pay them with F7, and the money goes to the society. Sending takes grade 1 or higher (
Config.MinimumBillingGrade).
Qbox
Jobs are in qbx_core/shared/jobs.lua. Grades start at [0]:
['burgershot'] = {
label = 'Burger Shot',
defaultDuty = true,
offDutyPay = false,
grades = {
[0] = { name = 'Employee', payment = 50 },
[1] = { name = 'Manager', payment = 100, isboss = true, bankAuth = true },
},
},
Restart your server after a change. In the game, first type /optin, which Qbox asks of admins by default, and then /setjob 1 burgershot 0.
- Paychecks:
paycheckTimeoutinqbx_core/config/server.lua, in minutes (10 by default). Off duty means no paycheck, unlessoffDutyPay = true. - Company money: Renewed-Banking from the recipe creates an account for every job. Grades with
bankAuthmanage it.isbossgives the boss menu of qbx_management: hiring, firing and promoting. You set where that menu is undermenusinqbx_management/config/server.lua. WithpaycheckSociety = truein qbx_core, salaries come out of that account. - Bills: Qbox has no separate resource for bills. Police on duty use
/finefrom qbx_police: the amount goes from the player's bank to the police account.
QBCore
QBCore mostly works like Qbox, with these differences:
- Jobs are in
qb-core/shared/jobs.lua, with grades as text:['0']./setjob 1 burgershot 0works without/optin. - Paychecks:
QBCore.Config.Money.PayCheckTimeOutinqb-core/config.lua, 10 minutes by default. WithPayCheckSociety = true, they come out of the company account. - Company money is in qb-banking, the boss menu is qb-management.
- Bills:
/bill 1 500from qb-phone, by default only for the jobs police, ambulance and mechanic. The bill shows up in the phone, and paid money goes to the job's account.
Need a new inventory too? Read Install ox_inventory and ox_target.