First, fix your Team name. If you have it named TEAM_SWAT, then if you have an actual SWAT Job with the TEAM_SWAT, then you're pretty much going to break the whole thing.
Second, if you're using ULX, I HIGHLY recommend changing your customCheck to the following:
customCheck = function(ply) return ply:GetUserGroup() == "Mod" end,
CustomCheckFailMsg = "This job is for Moderators only!"
If you want a fully completed and modified code, this would be it:
TEAM_MOD = DarkRP.createJob("Moderator on Duty", {
color = Color(255, 0, 0, 255),
model = "models/trenchcoat/slow.mdl",
description = [[You are a moderator on duty, You moderate!]],
weapons = {},
command = "mod",
max = 8,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetUserGroup() == "Mod" or ply:IsAdmin() end,
CustomCheckFailMsg = "This job is for Moderators only!"
})
And you also asked how to add an Admin on Duty job? Well just duplicate and replace with Admin:
TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
color = Color(255, 0, 0, 255), -- Modify colour
model = "models/trenchcoat/slow.mdl", -- Change to whatever you want
description = [[You are an admin on duty, You administrate!]],
weapons = {},
command = "admin",
max = 8,
salary = 100,
admin = 1,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:IsAdmin() end,
CustomCheckFailMsg = "This job is for Admins only!"
})
To make it so the job shows for everyone, go to your settings.lua and on line #367
GM.Config.hideNonBuyable = true
Change true to false