Custom DarkRP Job, Script issue

I’m trying to create a custom job which is only available to select ULX groups. However I can’t get it working :confused:

TEAM_POLICE = AddExtraTeam("S.W.A.T Marksman", Color(25, 25, 170, 255), "models/player/leet.mdl", [[You are a marksman.  Find a roof and pick those enemies off from a safe range.
Arrest Stick & Unarrest Stick
Weapon Checker

M24 Sniper Rifle]], {"arrest_stick", "unarrest_stick", "door_ram", "weaponchecker", "m9k_m24"}, "SNIPER", 2, 75, 0, false, true, 
function(ply) return ply:IsUserGroup("Bronze", "Silver", "Gold", "Moderator", "Admin", "Architect", "Super Admin", "Head Admin", "Community Manager") end)

If anyone can help, I would really appreciate it :slight_smile:

Pretty sure IsUserGroup works with only one argument. Also, AddExtraTeam is outdated; switch to the new format.

Ah ok :slight_smile: Cheers

I would recommend using a table

local ranks = {
"Super Admin", 
"Head Admin", 
"Community Manage"

function(ply) return rank[ply:GetUserGroup]end)