Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: jayjay on August 05, 2016, 07:46:48 PM

Title: [solved] multiple access tags
Post by: jayjay 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?
Title: Re: multiple access tags
Post by: JamminR 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.
Title: Re: multiple access tags
Post by: Undercover Orange 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.
Title: Re: multiple access tags
Post by: jayjay 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
Title: Re: multiple access tags
Post by: JamminR 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.
Title: Re: [solved] multiple access tags
Post by: Undercover Orange 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
Title: Re: [solved] multiple access tags
Post by: Stickly Man! 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)