Author Topic: Restrict xgui ConCommand  (Read 2201 times)

0 Members and 1 Guest are viewing this topic.

Offline Darkblizzard

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Restrict xgui ConCommand
« on: June 01, 2018, 03:33:12 PM »
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!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Restrict xgui ConCommand
« Reply #1 on: June 02, 2018, 08:18:56 AM »
You should be able to restrict access to the "xgui" command inside of XGUI, just like you do with the other ULX commands.
Experiencing God's grace one day at a time.

An Error Has Occurred!

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