DarkRP:Creating a job for a single person

From Serenity Servers Support

Creating a job for a single person is very easy, all you need to do is edit the custom check found here.

And edit it using the SteamID() function like i did below. Adding this to your jobs.lua inside the darkrpmodification addon, will create a job only for the person who have a matching steam id, in this case its my ID.

TEAM_MIKKEL = DarkRP.createJob("Mikkels Job", { -- Name
    color = Color(238, 99, 99, 255), -- Team color
    model = "models/player/mossman.mdl", -- Player model
    description = [[Sample text, this job is for Sublbc ONLY!]],  -- Job description
    weapons = {}, -- Additional weapons
    command = "sublbc", -- Command to become the job
    max = 2, -- Maximum amount of said job
    salary = 45, -- Salary
    admin = 0, -- Requires Admin? 1 for yes, 0 for no.
    vote = false, -- Do they need to vote? true for yes, false for no.
    hasLicense = false, -- Has a license
    customCheck = function(ply) return ply:SteamID()  == "STEAM_0:1:19603364" end,
    CustomCheckFailMsg = "This job is for Sublbc only!"
})

If you want to add this to an existing job, add the customCheck below

customCheck = function(ply) return ply:SteamID()  == "STEAM_0:1:19603364" end,
CustomCheckFailMsg = "This job is for Sublbc only!"

Banner
Promo