General > Developers Corner

ULib groups

(1/2) > >>

jay209015:
What is the name of the table that the ULib groups are stored under?

==EDIT==

Found it in the defines.lua file.

jay209015:
What I was looking for is a way to get a full list of allows for each group.

JamminR:
You may have already found your answers, but I'll answer what I think it would be for anyone else that stumbles here.

ucl.groups[ <group_your_checking> ].allow

Pseudo-non checked lua code - I trust I'll be corrected.

for a, check_group in pairs (ucl.groups) do
    for b, each_allow in pairs ( ucl.groups( check_group ).allow ) do
-- Msg/Print/Whatever ( each_allow )
    end
end

jay209015:
PrintTable(ucl.groups) returned nil :S

Megiddo:
ULib.ucl.groups silly :P

Navigation

[0] Message Index

[#] Next page

Go to full version