Author Topic: a way to bind all ulx commands to a job.  (Read 1315 times)

0 Members and 1 Guest are viewing this topic.

Offline UnknownDog

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
a way to bind all ulx commands to a job.
« on: June 07, 2018, 02:58:53 AM »
Hello there, i'm looking for a way to bind all the ulx commands to a specific job only. and not a rank.
is there a script already made for this or what?
i have a code however this code needs to be applied for everyyyyy command and what if ulx has an update i would be required to redo all the coding again which is a pain and 2 much work.
so can anyone help me.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: a way to bind all ulx commands to a job.
« Reply #1 on: June 07, 2018, 04:15:47 PM »
ULX does not do this, nor do we plan to add this in the future, as it would go against our simplicity motto. (We keep ULX compatible with the most users in mind and don't cater to gamemode specific features)

We do have a way to hook commands and deny them without modifying your ULX code. Check out the documentation on our hooks:

http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibCommandCalled

with this, you could check the calling player's team/job and then not allow  the command if they weren't in the proper team/job.

Offline UnknownDog

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
Re: a way to bind all ulx commands to a job.
« Reply #2 on: June 08, 2018, 06:50:08 AM »
alright thanks anyway. could you please maybe teach me how i'm a bit new to this and i'm trying to learn.
« Last Edit: June 08, 2018, 07:21:10 AM by UnknownDog »