Installation Guide
Installing this script is as easy as just downloading the script from the following website After downloading the script you have to put it in your resources folder or a sub folder of the resources folder. Lastly you will have to execute the SQL file to ensure that the script works with your server.

This is only optional and doesnt have to be done!
  • You are able to customize the script through locales and the config. If you want to go more indepth there are functions files and javascript files that are fully open sourced waiting for you to change them.
  • Add the job to the multi jobs script automatically through the default qb-core / es_extended add / give job (the function that commands such as /setjob etc uses). Also required to make sure that the job rank gets updated through /setjob ES_Extended: Open ES_Extended -> server -> classes -> player.lua and scroll down until you find the function called "self.setJob", in there you want to add this code after the "esx:setJob" event. (see image below)
    exports["zerio-multijobs"]:GetJobs(self.identifier, function(jobs)
    local notFound = true
    for i,v in pairs(jobs) do
    if v.name == self.job.name then
    notFound = false
    end
    end
    if notFound then
    exports["zerio-multijobs"]:AddJob(self.identifier, self.job.name, self.job.grade)
    else
    exports["zerio-multijobs"]:UpdateJobRank(self.identifier, self.job.name, self.job.grade)
    end
    end)
    QB-Core: Open QB-Core -> server -> player.lua and scroll down to the function called "self.Functions.SetJob", in there you want to add this code bit after the job updating part of the function (see image below)
    exports["zerio-multijobs"]:GetJobs(self.PlayerData.citizenid, function(jobs)
    local notFound = true
    for i,v in pairs(jobs) do
    if v.name == job then
    notFound = false
    end
    end
    if notFound then
    exports["zerio-multijobs"]:AddJob(self.PlayerData.citizenid, job, tonumber(grade))
    else
    exports["zerio-multijobs"]:UpdateJobRank(self.PlayerData.citizenid, job, tonumber(grade))
    end
    end)
Copy link