ULX

Author Topic: Creating Permissions  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

Offline chudders1231

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Creating Permissions
« on: December 30, 2016, 10:19:43 AM »
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!

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Creating Permissions
« Reply #1 on: December 30, 2016, 07:40:50 PM »
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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Creating Permissions
« Reply #2 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 :)
Experiencing God's grace one day at a time.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Creating Permissions
« Reply #3 on: January 01, 2017, 11:48: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 :)
Oh, right, I forgot there was documentation. :P
bw81@ulysses-forums ~ % whoami
Homepage