General > Developers Corner

permission flags?

(1/1)

nathan736:
in the ulx groups menu theres checkboxes for stuff like show hidden echo ect is this hard coded or is there a way to add more for developers who code there own guis  to use non hard coded if v.candothis then  do this

Megiddo:
We try not to hard code anything in ULX in general.

To directly answer you, this is what you're looking for.

nathan736:
thanks ;) is there a example for this ? 
so
ucl.registerAccess(   access,groups,comment,category   )
would become
ucl.registerAccess( dothis,superadmin,"lets people do this"," yoloswag" )
now how would i check if some one has access from this ?

Megiddo:
Why not look through ULX for examples? log.lua has some particularly simple usages of this and would answer your second question too.

Navigation

[0] Message Index

Go to full version