If you want to make the assignment mandatory, you must create the jobs in your core. Either in QB or in ESX.
You will also have to change the scritp configuration in the config.lua file to make it required:
Config.jobRequired = true
Below are the default jobs that you should create in your core.
If you use ESX you will have to create the jobs from the database. Pass the following query to create them:
INSERT INTO jobs (name, label) VALUES
('lumberjack', 'Lumberjack'),
('electrician', 'Electrician'),
('oiltechnician', 'Oil Technician'),
('fisherman', 'Fisherman'),
('coffeefarmer', 'Coffee Farmer'),
('baker', 'Baker'),
('tailor', 'Tailor'),
('scientist', 'Scientist');
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('lumberjack', 0, 'employee', 'Employee', 50, '{}', '{}'),
('electrician', 0, 'employee', 'Employee', 50, '{}', '{}'),
('oiltechnician', 0, 'employee', 'Employee', 50, '{}', '{}'),
('fisherman', 0, 'employee', 'Employee', 50, '{}', '{}'),
('coffeefarmer', 0, 'employee', 'Employee', 50, '{}', '{}'),
('baker', 0, 'employee', 'Employee', 50, '{}', '{}'),
('tailor', 0, 'employee', 'Employee', 50, '{}', '{}'),
('scientist', 0, 'employee', 'Employee', 50, '{}', '{}');
To create the jobs in QB you will have to modify the file located in the following path of your server resources/[qb]/qb-core/shared/jobs.lua
--bit-jobs
miner = {
label = 'Miner',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
lumberjack = {
label = 'Lumberjack',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
electrician = {
label = 'Electrician',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
oiltechnician = {
label = 'Oil Technician',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
fisherman = {
label = 'Fisherman',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
coffeefarmer = {
label = 'Coffee Farmer',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
baker = {
label = 'Baker',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
tailor = {
label = 'Tailor',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},
scientist = {
label = 'Scientist',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = { name = 'Employee', payment = 50 },
},
},