Required Job

QBCore / QBox

If you are using QBCore || QBox to add the required job โ‡’ qb-core/shared/jobs.lua || qbx_core/shared/jobs.lua

["casino"] = {
	label = "Diamond Casino",
	defaultDuty = true,
	offDutyPay = true,
	grades = {
		[0] = {
			name = "Worker",
			payment = 0,
		},
		[1] = {
			name = "Boss",
			isboss = true,
			payment = 0,
		},
	}
},

ESX

If you are using ESX to add the required job โ‡’ By reading the SQL Code below with โ€˜phpmyadminโ€™ or โ€˜HeidiSQLโ€™ , you install the necessary contents of the jobs on your server.

CREATE TABLE IF NOT EXISTS `jobs` (
  `name` varchar(50) NOT NULL,
  `label` varchar(50) DEFAULT NULL,
  `whitelisted` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `jobs` (`name`, `label`, `whitelisted`) VALUES
	('casino', 'Diamond Casino', 0),

CREATE TABLE IF NOT EXISTS `job_grades` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `job_name` varchar(50) DEFAULT NULL,
  `grade` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `label` varchar(50) NOT NULL,
  `salary` int(11) NOT NULL,
  `skin_male` longtext NOT NULL,
  `skin_female` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;


INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
	(41, 'casino', 0, 'employee', 'Courier', 0, '{}', '{}'),
	(42, 'casino', 0, 'boss', 'Boss', 0, '{}', '{}'),

Last updated