Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started 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?
-
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.
-
ULib v32.61
Is my ULIB outdated or is that a typo? i feel like its a typo.
-
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
-
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.
-
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
-
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:
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)