Pivity

sub user groups

Last read Never
#1

Hello, i would like to set players who have a donator rank to a moderator rank without stripping them of their donator benefits.

i use ULX and it only likes giving 1 rank so example, [player 1] has rank vip applies for staff gets accepted.

I want them to have the moderator rank now but keep their vip benefits without having to add those benefits to moderator, so moderators who are not vip don't have benefits they just have mod privilege's

#2

If I remember right, Billy's GmodAdminSuite has secondary user groups, https://steamcommunity.com/sharedfiles/filedetails/?id=1595332211

#3

It does but i dont know how to set it up either i found this but it has like no actual instructions of where to put this function

this is the function

hook.Add("PlayerSpawn", "ShowUsergroups", function(ply)
local usergroups = GAS:GetUsergroups(ply)
PrintTable(usergroups)
end)

but where do i put this code so that i may give users their main rank with ulx and then add the sub rank? i heard a rumor about just putting peoples steam id's that become staff some where but also not much instructions :/

#4

Unfortunately I can't help you, but the code you posted is just a tool, that would print all usergroups in the console, whenever someone spawns, just seems like a tool to debug maybe.

You would put that into a file in your lua/autorun/server directory (you can create a new one), but it will not add any groups.

#5

ok ... so i already have the groups setup im just trying to give someone that is in 1 group priveleges of another group while keeping their main group.

example Player:SWIM is rank VIP and also is MOD

Users viewing this thread
Nobody