General > Developers Corner

Creating Permissions

(1/1)

chudders1231:
Hey,
I am fairly new to LUA, especially in GMOD and im also new to ULX's functions so i was wondering how i can create permissions in ULX so that the user's of my script can assign it to groups.

Thanks!

Bytewave:
You can create permissions with ULib.ucl.registerAccess, seen here.
You can validate that users have permissions with ULib.ucl.query, seen here.

That should be about it.

Megiddo:
Or, you can find the documentation for that function here -- http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess :)

Bytewave:

--- Quote from: Megiddo on January 01, 2017, 10:54:55 AM ---Or, you can find the documentation for that function here -- http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess :)

--- End quote ---
Oh, right, I forgot there was documentation. :P

Navigation

[0] Message Index

Go to full version