• Print

Author Topic: ULX Ranks  (Read 5198 times)

0 Members and 1 Guest are viewing this topic.

Offline AcelGrim

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
ULX Ranks
« on: February 11, 2017, 05:43:50 pm »
So I have custom ULX Ranks setup
user (normal)
vip
trialstaff
operator
moderator
admin (normal)
superadmin (normal)
communitymanager
developer
owner

And for some reason my trialstaff, operator and moderator ranks cant access the admin jobs, how do I make the ranks admin related so they can access the jobs?

Offline captain1342

  • Full Member
  • ***
  • Posts: 104
  • Karma: 6
  • Quality is our standard
    • Aperture Development - Quality is our standard
Re: ULX Ranks
« Reply #1 on: February 11, 2017, 06:11:54 pm »
Thats DarkRP not ULX but well: You need to set the access in the job file. its like a lua table so:

Code: Lua
  1. {
  2. "trialstaff",
  3. "operator",
  4. "moderator",
  5. "admin",
  6. "superadmin",
  7. "communitymanager",
  8. "developer",
  9. "owner"
  10. }
  11.  

Here is an Example from my Server:

Code: Lua
  1. TEAM_SUPPORTER = DarkRP.createJob("Supporter on Duty", {
  2.     color = Color(245, 0, 61, 255),
  3.     model = {
  4.                         "models/zambie/rocket/rocket_raccoon.mdl"
  5.         },
  6.     description = [[>>Nur für Supporter<<. Nur bei aktivem Support.]],
  7.     weapons = {
  8.         "weapon_policebaton",
  9.         "weapon_stungun",
  10.         "pass_usa",
  11.         "door_ram",
  12.         "weaponchecker",
  13.         "weapon_cuff_tactical"
  14.     },
  15.     command = "supporter",
  16.     max = 0,
  17.     salary = 35,
  18.     admin = 0,
  19.     vote = false,
  20.     hasLicense = true,
  21.     candemote = true,
  22.     customCheck = function(ply)
  23.         return table.HasValue(
  24.             {
  25.                 "probesupporter",
  26.                 "supporter",
  27.                 "supporterleitung"
  28.             },
  29.             ply:GetNWString("usergroup")
  30.         )
  31.     end,
  32.     CustomCheckFailMsg = function(ply)
  33.          return "Du bist kein Supporter!"
  34.     end,
  35.     hasRadio = false,
  36.     canTalkToGlobal = false,
  37.     category = "Server Team"
  38. })
  39.  
« Last Edit: February 11, 2017, 06:16:51 pm by captain1342 »
Aperture Development
Quality is our standard

Website - GitHub  - Forum  - Steam  - Discord

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Ranks
« Reply #2 on: February 11, 2017, 06:12:04 pm »
I presume you're using something in DarkRP as 'jobs'
I'd search here or Google "darkrp custom check"
Tons of discussion through out here and the web for testing groups in custom check code during jobs.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Ranks
« Reply #3 on: February 11, 2017, 06:12:49 pm »
Or what captain says, as i have no experience with DarkRP other than what I see here on the forums.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline captain1342

  • Full Member
  • ***
  • Posts: 104
  • Karma: 6
  • Quality is our standard
    • Aperture Development - Quality is our standard
Re: ULX Ranks
« Reply #4 on: February 11, 2017, 06:16:21 pm »
It's pretty easy thought
Aperture Development
Quality is our standard

Website - GitHub  - Forum  - Steam  - Discord

  • Print