💼Job

Job settings overview

Config.lua
Config.allowedjobs = true -- Enable job check before using the UI [ true \ false ]
Config.allowedjobsname = {"hacker", "unemployed"}   -- Allowed job names (You can find\add it in MySQL table Jobs)
Config.allowedjobstxt = "You need an allowed job to use this." -- Hint if missing job

Config.allowedjobs If true check the player job before using the UI, else if false disable the requirement. Config.allowedjobsname List of allowed job names. Can be any jobs.

SQL.sql
INSERT INTO `jobs` (`name`, `label`) VALUES ('hacker', 'Hacker');
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES ('hacker', 0, 'recruit', 'Recruit', 0, '{}', '{}');
INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES ('hacker', 1, 'boss', 'Boss', 0, '{}', '{}');

Was this helpful?