General > Developers Corner
Get Table Of Current UserGroups
(1/1)
kklouzal:
Hello, I am looking for a function that will return a table of all the usergroups on a server, I looked on the ulib wiki for such a function but have had no luck.
There must be such a thing since the XGUI has the drop down box that shows all the usergroups.
Thanks for all your help in advance! :)
Megiddo:
ULib.ucl.groups (just don't modify this table)
kklouzal:
Thank you very much my good sir!
kklouzal:
Could I submit a feature request for an actual shared function to return this table, or just a table of the names of the groups and a hook which would fire when the groups have changed?
This would be very handy! :)
JamminR:
http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#UCLChanged
You could, but, likely won't go farther than that.
Too easy to just look for that hook and grab whatever is needed.
Navigation
[0] Message Index
Go to full version