People cant see donator jobs?

How do I make it so people can see donator jobs, but when they try it says “You must donate for this”. Ive done it on entities and it works fine but it hides jobs?


TEAM_SARMS = AddExtraTeam("Special Arms Dealer", {
        color = Color(102, 204, 255, 255),
        model = "models/player/hostage/hostage_02.mdl",
        description = [[This is a donator special job, you sell gadgets and special 
		items to members of the public.
		Be sure to not get involved with gang activities!]],
        weapons = {},
        command = "special_arms",
        max = 1,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false,
customCheck = function(ply)
return ply:GetUserGroup() == "goldvip" or ply:GetUserGroup() == "vip" or ply:GetUserGroup() ==  "mod" or ply:IsAdmin() end,
CustomCheckFailMsg = "You need to donate for this!"

Returning CLIENT will make it visible to everyone.
So: return CLIENT or ply:IsUser… And so on

So I should replace GetUserGroup with IsUser? Also I am using ulx groups.

[editline]15th October 2013[/editline]

Ok I figured it out, now it still doesn’t work?


customCheck = function(ply)
return ply:IsUserGroup ("goldvip") or ply:IsUserGroup ("vip") or ply:IsUserGroup ("mod") or ply:IsAdmin() end,
CustomCheckFailMsg = "You need to donate for this!"
})


Edit: You still cannot see it on F4?

Are you using ulx or FAdmin?

ULX, no erros just still can’t see the jobs as a non vip.

That is how the customCheck works.

You should listen to ms333, he clearly told you to add return CLIENT or …

[lua]
customCheck = function(ply)
return CLIENT or ply:IsUserGroup (“goldvip”) or ply:IsUserGroup (“vip”) or ply:IsUserGroup (“mod”) or ply:IsAdmin() end,
CustomCheckFailMsg = “You need to donate for this!”
})
[/lua]