Hide VIP Job for non VIP in F4 menu

Hi, I’m trying to make it so only the VIP people can see the VIP jobs, while the regular users can’t see them in the f4 menu?

How can I go about doing this?

I’ve added


GM.Config.hideTeamUnbuyable = true

But that didn’t work as they are still visible to everyone as well as the Custom Classes

Is there any code to back up that config line rofl?

:v:

Yes, that is set to that in my settings. Curious on why people can still see them

Anyone know how to do so?

Do you use the default F4 menu?

Put this under your job.
[lua]
customCheck = function(ply)
return ply:IsUserGroup(“vip”) or ply:IsUserGroup(“anotherformofvip”)
end,
[/lua]

Edit: Example job:

[lua]
TEAM_EXAMPLE = DarkRP.createJob(“Example”, {
color = Color(0, 255, 255, 255),
model = “models/player/monk.mdl”,
description = [],
weapons = {},
command = “example”,
max = 1,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply)
return ply:IsUserGroup(“vip”) or ply:IsUserGroup(“anotherformofvip”)
end,
})
[/lua]