Two customChecks on a job, in DarkRP

I’m kind of a noob, but I can get things done.

There’s just this small issue that I’m having and I’d really appreciate it if somebody could help me out!

So, in the jobs.lua, I have a rebel class and I only want it to appear if there is a Mayor.
I actually have the customCheck for it, and I want to give credits to the person here:

It works, but the problem is, is that I have another customCheck for it, and it’s called isVIP.
isVIP calls for a function that makes sure that your usergroup in ULX is vip or higher.

I don’t know how to exactly run both of these functions at the same time, which is what I need help with.
I tried:

	customCheck = isVIP,
	customCheck = fn.Compose{fn.Not, fn.Null, fn.Curry(fn.Filter, 2)(FindMetaTable("Player").isMayor), player.GetAll},

but that didn’t work out so well, haha.

Sorry if this is confusing, I tried my best explaining.
Anyways, I’d really appreciate any kind of help.

Thanks for reading!

What way have you got the isVIP function set up?

Hi, thanks for your reply!
It goes like this:

return ply:GetNetworkedBool("VIP") == true or ply:GetUserGroup() != "user"

Sorry, I should have specified I meant parameter-wise.

Is it like this?

function isVIP(ply)


Try this:

customCheck = fn.FAnd{fn.Compose{fn.Not, fn.Null, fn.Curry(fn.Filter, 2)(FindMetaTable(“Player”).isMayor), player.GetAll}, isVIP},

Thanks so much!
It worked perfectly!