• Hide VIP Job for non VIP in F4 menu
    7 replies, posted
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 [CODE]GM.Config.hideTeamUnbuyable = true[/CODE] 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?
[QUOTE=NiandraLades;47374409]Is there any code to back up that config line rofl?[/QUOTE] [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/config.lua#L440[/url] :v:
[QUOTE=zerf;47374547][url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/config.lua#L440[/url] :v:[/QUOTE] Yes, that is set to that in my settings. Curious on why people can still see them
[QUOTE=cseal69;47376133]Yes, that is set to that in my settings. Curious on why people can still see them[/QUOTE]
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]
Sorry, you need to Log In to post a reply to this thread.