Jobs
In this section, we’ll guide you through configuring Kartik-Banking jobs across the most commonly used core frameworks: qb-core
, qbx_core, and esx
. These jobs are essential for enabling role-based functionality in your banking system — such as handling loan issuance, account management, or employee payroll through specific job roles like banker
.
Below is how to add the required jobs in your core’s shared job configuration.
1. qb-core Configuration
For qb-core , you need to add the following configuration in your qb-core/data/jobs.lua
file.
['banker'] = {
label = 'Banker',
defaultDuty = true,
grades = {
['0'] = {
name = 'trainee',
payment = 100
},
['1'] = {
name = 'juniorbanker',
payment = 150
},
['2'] = {
name = 'seniorbanker',
payment = 200
},
['3'] = {
name = 'manager',
isBoss = true,
payment = 300
}
}
}
2. qbx_core Configuration
For qbx_core , add the following configurations in your qbx_core/shared/jobs.lua
file.
['banker'] = {
label = 'Banker',
defaultDuty = true,
grades = {
['0'] = {
name = 'trainee',
payment = 100
},
['1'] = {
name = 'juniorbanker',
payment = 150
},
['2'] = {
name = 'seniorbanker',
payment = 200
},
['3'] = {
name = 'manager',
isBoss = true,
payment = 300
}
}
}
3. ESX Configuration
For ESX, run the following query.
INSERT INTO `jobs` (`name`, `label`, `whitelisted`) VALUES
('banker', 'Banker', 1);
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`) VALUES
('banker', 0, 'trainee', 'Trainee', 100, 0),
('banker', 1, 'juniorbanker', 'Junior Banker', 150),
('banker', 2, 'seniorbanker', 'Senior Banker', 200),
('banker', 3, 'manager', 'Bank Manager', 300);
By following these steps and adding the correct configurations, your Banking items will be ready for use in your Kartik-Banking system!
Last updated