Author Topic: Creating Permissions  (Read 127 times)

0 Members and 1 Guest are viewing this topic.

Offline chudders1231

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
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: 684
  • Karma: 95
  • :)
    • View Profile
    • 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

I have 10 more Keybase invites! PM me for more information or to request one!
An easy intro to PGP and public-key cryptography

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6097
  • Karma: 374
  • Project Lead
    • View Profile
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: 684
  • Karma: 95
  • :)
    • View Profile
    • 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

I have 10 more Keybase invites! PM me for more information or to request one!
An easy intro to PGP and public-key cryptography