Ulysses
General => Developers Corner => Topic started by: nathan736 on March 22, 2013, 08:38:37 AM
-
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
-
We try not to hard code anything in ULX in general.
To directly answer you, this is what you're looking for (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess).
-
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 ?
-
Why not look through ULX for examples? log.lua has some particularly simple usages of this and would answer your second question too.