Author Topic: [solved] multiple access tags  (Read 3355 times)

0 Members and 1 Guest are viewing this topic.

Offline jayjay

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
[solved] multiple access tags
« on: August 05, 2016, 07:46:48 PM »
My ULib/ULX versions (run "ulx version" in console):
ULib v32.61
ULX v3.71

Game mode(s) I am having this problem on: darkrp

im trying to give a group access to ulx give, but restricting it to give themselves weapon_physgun and gmod_tool.
it works when i do "ulx groupallow testgroup ulx give ^ weapon_physgun", but doing "ulx groupallow testgroup ulx give ^ gmod_tool" would disable their ability to give themselves weapon_physgun.  so im guessing giving them a new access tag would overwrite the previous one. is there any way to allow them to give themselves both weapon_physgun and gmod_tool?
« Last Edit: August 06, 2016, 01:11:03 PM by jayjay »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: multiple access tags
« Reply #1 on: August 05, 2016, 09:29:47 PM »
tried a comma between the two? gmod_tool,weapon_physgun
Megiddo and Stickly Man (or perhaps MrPresident) would need to confirm, as honestly, I'm not even experienced with how advanced our command lines are (and they are!)
I think this type of item has been discussed somewhere here before, but I'd have to start with our FAQ on can_target, and search the forum overall from there.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Undercover Orange

  • Full Member
  • ***
  • Posts: 139
  • Karma: -14
  • Leader of Undercover Gaming Community
Re: multiple access tags
« Reply #2 on: August 06, 2016, 12:30:54 AM »
ULib v32.61

Is my ULIB outdated or is that a typo? i feel like its a typo.
~ Undercover Orange

Offline jayjay

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: multiple access tags
« Reply #3 on: August 06, 2016, 01:11:56 PM »
gmod_tool,weapon_physgun
ah i've been trying weapon_physgun, gmod_tool. that space i had between the comma and g messed it up. it works now, thanks!

Is my ULIB outdated or is that a typo? i feel like its a typo.
oh yeah my bad haha i meant v2.61

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: multiple access tags
« Reply #4 on: August 06, 2016, 02:16:42 PM »
oh yeah my bad haha i meant v2.61
I didn't even realize you were from the future.
Glad to know ULX is still around, even if not within our realm of control.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Undercover Orange

  • Full Member
  • ***
  • Posts: 139
  • Karma: -14
  • Leader of Undercover Gaming Community
Re: [solved] multiple access tags
« Reply #5 on: August 07, 2016, 05:22:35 AM »
hahaha I bet if you guys tried you could make an entirely new game and use ulx as the default admin mod. I BELIEVE IN YOU!lol
~ Undercover Orange

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: [solved] multiple access tags
« Reply #6 on: August 09, 2016, 07:52:54 AM »
Apparently we don't really have this documented anywhere. :P I don't have Gmod on me at the moment, so I had to dig through old posts and code to make sure I got this right lol.

You can restrict to multiple allowed strings by putting them in comma-separated within <>. So, this is probably what you want:

Code: [Select]
ulx groupallow testgroup "ulx give" ^ <gmod_tool,weapon_physgun>
This can be done pretty easily within XGUI's permissions editor, as well. (Unless something broke recently)
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6