General > Developers Corner
How to sort groups by power?
(1/1)
Chironex:
Hi guys ;)
I'm making a script and I need to sort groups by their power, but I can't find a way of doing it automatically. I would like to build a table, like this:
1 - Owner
2 - Superadmin
3 - Admin
4 - Respected
5 - Newcomer
6 - Minge
How can I do this? I may need "ULib.ucl.groups[ply:GetUserGroup()].inherit_from" but I have no idea what to do with it, and I'm not even sure if that's what I need... :S
Thanks in advance if you can help!
Megiddo:
Maybe you're looking for ULib.ucl.getInheritanceTree?
Chironex:
I'm sure that it's just what I need, thank you Meg ;)
Looking at XGUI's groups.lua helped me a lot, hehe
Navigation
[0] Message Index
Go to full version