General > Developers Corner

Restrict xgui ConCommand

(1/2) > >>

Darkblizzard:
Hello,
I'm trying to restrict it so the concommand "xgui" or "ulx menu" doesn't open unless in a certain usergroup. I would use the Garry's Mod functions, but looking through the code each one begins with "xgui.". Is there a specific way to do this without having to damage the code?
Thanks!

Megiddo:
You should be able to restrict access to the "xgui" command inside of XGUI, just like you do with the other ULX commands.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version