PivityGmodStore

Job requirements

To add a level / prestige requirement to join a job you need to head to your darkrp modification master and custom jobs file, there you can add the requirement.


Here is an example of a job with the said requirement:

TEAM_BEAR = DarkRP.createJob("Bear", {

    color = Color(255, 165, 0, 255),

    model = "models/player/kleiner.mdl",

    description = [[You are a bear. Roam around and do bear things.]],

    weapons = {},

    command = "bear",

    max = 2,

    salary = 45,

    admin = 0,

    vote = false,

    hasLicense = false,

   

    customCheck = function(ply)

        return elv.getLevel(ply) >= 5

    end,

    CustomCheckFailMsg = "You must be at least level 5 to select this class.",

})


You just need to add the custom check field, the fail message is optional.

To see all the values you can use as a requirement visit: https://www.gmodstore.com/help/addon/elevels-easy-leveling-system/how-to-add-skills/topics/values

Can't find what you're looking for?

Contact support