Ulib Groups

So I’m new to GMod and all its glory… (as an admin)

My biggest question first of all is -
Do you have to have superadmin and admin groups?

If the answer is yes…

Can I just use superadmin as a placeholder then have it inherited to give that group super admin?

I want to make sure that any addons or gamemodes that call for superadmin or admin will still work properly without having to use the actual names…

My groups.txt currently looks like this - but is on hold till I figure this out more…


"superadmin"
; Co-Leaders
{
	"can_target"	"!%admin"
	"allow"
	{
		"ulx cexec"
		"ulx ent"
		"ulx exec"
		"ulx luarun"
		"ulx rcon"
		"ulx noclip"
	}
	"inherit_from"	"admin"
}

"admin"
; Board of Executives
{
	"can_target"	"!%Major"
	"allow"
	{
		"ulx resettodefaults"
		"ulx who"
	}
	"inherit_from"	"Major"
}

"Major"
; Global Admins
{
	"can_target"	"!%Lieutenant"
	"allow"
	{
		""
	}
	"inherit_from"	"Lieutenant"
}

"Lieutenant"
; High Admins
{
	"can_target"	"!%Warrant"
	"allow"
	{
		"ulx map"
		"ulx respawn"
		"ulx respawntp"
		"xgui"
		"xgui fban"
		"xgui xban"
		"ulx csay"
		"ulx tsay"
		"ulx bring"
		"ulx goto"
		"ulx sban"
		"ulx sbanid"
	}
	"inherit_from"	"Warrant"
}

"Warrant"
; Low Admins
{
	"can_target"	"!%Specialist"
	"can_target"	"!%Private"
	"can_target"	"!%Gunny"
	"can_target"	"!%BadAss"
	"can_target"	"!%Ninja"
	"can_target"	"!%Pirate"
	"allow"
	{
		"ulx kick"
		"ulx spectate"
		"ulx slaynr"
		"ulx votemap2"
		"ulx voteban"
		"ulx slay"
		"ulx gag"
		"ulx ungag"
		"ulx gimp"
		"ulx ungimp"
		"ulx mute"
		"ulx unmute"
		"ulx psay"
	}
}

"Specialist"
; Veteran
{
	"allow"
	{
	}
}

"Private"
; Member
{
	"allow"
	{
	}
}

"Gunny"
; Recruit
{
	"allow"
	{
	}
}

"BadAss"
{
	"allow"
	{
	}
	"inherit_from"	"Warrant"
}

"Ninja"
{
	"allow"
	{
	}
	"inherit_from"	"Warrant"
}

"Pirate"
{
	"allow"
	{
	}
} 

You should always have a Superadmin/Admin gruop.

I’m Okay with always having them… I’m asking…

If I just use super admin as an inherit group would the inheriting group get anything that Addons/Gamemodes only give to superadmin>?

Of course… If you inherit from a group you get whatever that group has access to plus some whatever extra you give that rank. And keep the default ranks (you can get rid of operator if you want).

Inheriting works like this. Say superadmin has access to everything but a slap command, if you made an owner group that inherits from superadmin it gets everything that superadmin can do. If you wanted to also give owner slap then you’d give it access to slap also. Now if you made a group named supermarket it would get everything that owner has (including slap) plus whatever else you want to let the have, but the superadmin rank won’t ever get slap.

You could inherit from the user and admin ranks too if you wanted to.

Thank you that answered my question :smiley: