Ulx and Multiple groups

Hello there i’m working on a futur server and i block with Ulx groups.I want to make the

TEAM_ALLIANCE = DarkRP.createJob(“M.Shepard N7”, {
color = Color(75, 0, 130, 255),
model = {
“models/nikout/masseffect3/Shepard_OldN7.mdl”
},
description = [[Vous êtes un vrais N7 maintenant comportez-vous comme tel.Plus qu’un échellon.Vous n’êtes pas encore Commandant de votre vaisseau vous allez devoir vous entrainer dure pour pouvoir accédé à ce rang!]],
weapons = {},
command = “mshepardN7”,
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = “Alliance”,
customCheck = function(ply) return ply:CheckGroup(“apprentin7”) == (“n7”) end

In groups apprentin7 and groups n7 so i want the player must be in the group n7 and apprentin7 how to do that i have try everything and nothing work…I’m lost.And how create the good group if you make the code with 2 group you must create a group with ‘apprentin7 n7’ ?



customCheck = function( ply ) return table.HasValue( { 'apprentin7', 'n7' }, ply:GetUserGroup() ) end


You can add as many groups in that table.

I already try this but when i put the player on group apprentin7 n7 it’s does’t work he see nothing.
I try your code because my code is different so i told you after i test this.

EDIT:No does’t work i put the player on groups apprentin7 n7 and see nothing

[editline]3rd October 2016[/editline]

Another…idea?

What do you mean “you see nothing” do you receive errors after adding the custom check?