🗂️Install Job / Items

Through this page you can quickly install the necessary items and job on your server


🧰 Items - Install

OX, QBCore items and item images

254KB
Open

💼 Job - Install

QBCore ⇒ How can you install job

You can follow this file pathqb-core/shared/jobs.lua || qbx_core/shared/jobs.lua

["hunter"] = {
		label = "Hunter",
		defaultDuty = true,
		offDutyPay = true,
		grades = {
				[0] = {
							name = "Hunter",
							payment = 0,
				},
		}
},

ESX ⇒ How can you install job

By reading the SQL File 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
	('hunter', 'Hunter', 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,
	(300, 'hunter', 0, 'employee', 'Hunter', 0, '{}', '{}');

Last updated