ULX donator jobs

I have my gmod servr up and running and currently I am trying to make the swat job a vip and vip+ job only. I was on the darkrp wiki and was looking into it but all the things I tried would not work such as
function(ply) return ply:GetNWString(“usergroup”) == “vip” or ply:GetNWString(“usergroup”) == “vipplus” end
and
function(ply) return table.HasValue({“vipplus”, “vip”, “admin”, “superadmin”, “Moderator”}, ply:GetNWString(“usergroup”)) end
but they do not seem to work, every group including default user still has the ability to use the job.

bump?



        customCheck = function(ply)
        return table.HasValue({"vipplus", "vip", "admin", "superadmin", "Moderator"}, ply:GetNWString("usergroup")) 
        end
})


That’s what you want. ^ So after it would look like this:



TEAM_SWATVIP = AddExtraTeam("S.W.A.T. VIP", {
	color = Color(255, 140, 0, 255),
	model = "models/player/swat.mdl",
	description = [[S.W.A.T. VIP]],
	weapons = {"weapon"},
	command = "swatvip",
	max = 4,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
        customCheck = function(ply)
        return table.HasValue({"vipplus", "vip", "admin", "superadmin", "Moderator"}, ply:GetNWString("usergroup")) 
        end
})


You missed a comma after hasLicense = false.

Fixed, thanks.

Allright I’ll try it out, thanks!