Author Topic: Group access to certain jobs  (Read 2005 times)

0 Members and 1 Guest are viewing this topic.

Offline xblastermaster1

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Group access to certain jobs
« on: August 22, 2015, 10:25:59 PM »
I just want to know how to make it so that to become a certain job you have to be in a certain group

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Group access to certain jobs
« Reply #1 on: August 23, 2015, 07:18:14 AM »
Not exactly a ULib groups question.
See http://wiki.darkrp.com/index.php/Donator_Job_configuration#Restrict_certain_jobs_to_donator.2Fvip.2Fwhatever_usergroup
If you need further help, ask in our Developers corner section.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xblastermaster1

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Group access to certain jobs
« Reply #2 on: August 23, 2015, 02:22:38 PM »
how do i do this with the newer way of creating a job like this









Team_Scouts = DarkRP.createJob("Division Scout", {
   color = Color(0, 0, 0, 255),
   model = {"models/player/Group03/male_01.mdl","models/player/Group03/male_02.mdl","models/player/Group03/male_03.mdl","models/player/Group03/male_04.mdl"},
   description = [[You are a scout for the Division and you us long range snipers and camouflage to scout areas.]],
   weapons = {"m9k_m24"},
   command = "Scout",
   max = 10,
   salary = 250,
   admin = 0,
   vote = false,
   hasLicense = true,
   candemote = true,
   -- CustomCheck
   medic = false,
   chief = false,
   mayor = false,
   hobo = false,
   cook = false,
   category = "Divsion Scout",
})

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Group access to certain jobs
« Reply #3 on: August 25, 2015, 12:08:41 AM »
with the CustomCheck function on the darkrp wikia.
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Group access to certain jobs
« Reply #4 on: August 25, 2015, 02:59:53 PM »
As has been linked to in a previous post (Re: CustomCheck)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming