General > Developers Corner
Function to return list of groups?
(1/1)
Ludicium:
I am writing a script and I need to be able to get all the groups on a server from ulx, any thoughts? I already took a look at the ulib documentation and I didn't see anything but then again I didn't look very hard.
MrPresident:
The groups are stored in this table:
ULib.ucl.groups
if you were do do something like...
for k, v in pairs(ULib.ucl.groups) do
print(k)
end
it would return a list of all the groups.
Ludicium:
So the index is the group name. I see thanks :).
Navigation
[0] Message Index
Go to full version