DarkRP Limit Jobs?

Hello, I’m trying to help a friend make a job only for certain ranks. This doesn’t work.

if:plyusergroup ("user", "member", "trusted") then return TEAM_PROTECT nil

They’re the groups that I don’t want to have access to this job. I don’t even know if it’s the TEAM_PROTECT I need to return nil.

if using ulx, put this beneath your job
[lua]TEAM_HIT = AddExtraTeam(“Hitman”, {
color = Color(5, 81, 12, 255),
model = “models/player/leet.mdl”,
description = [[The Hitman kills people for money, minimum price for a hit is 200]],
weapons = {“weapon_mad_usp”},
command = “hitman”,
max = 2,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply)
return ply:GetUserGroup() == “something” or ply:GetUserGroup() == “something else” or ply:IsAdmin()

note the comma after false
this will allow the job for certain groups, not restrict