Author Topic: Custom jobs added to governement access  (Read 2701 times)

0 Members and 1 Guest are viewing this topic.

Offline [NG:A] The Skrub King

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Custom jobs added to governement access
« on: October 20, 2015, 01:29:11 PM »
Basically, I want to be able add custom jobs I made, like TEAM_POLICEMAN, and other custom jobs I have, so that they can warrant and also be able to open the doors at the PD, I know its not really ULX, unless it is in some way, but this is the only way I can find help for it.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Custom jobs added to governement access
« Reply #1 on: October 20, 2015, 01:39:45 PM »
you have to add it in the settings.lua I think? Might be the wrong file but its in the same category as jobs.lua, disableddefaults.lua, etc..
Once you get to know me, you'll find you'll have never met me at all.

Offline [NG:A] The Skrub King

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: Custom jobs added to governement access
« Reply #2 on: October 20, 2015, 01:50:34 PM »
Yeah I checked in my DarkRP modification folder, and i checked all the folders and they didnt help as i checked them through but nothing, i also checked the jobs.lua and the only code I could find was this, and it i have placed the right jobs in it: GAMEMODE.CivilProtection = {
   [TEAM_POLICEMAN] = true,
   [TEAM_MAYOR] = true,
   [TEAM_SWAT] = true,
   [TEAM_SWATLEADER] = true,
   [TEAM_SWATSPECIALIST] = true,
   [TEAM_SWATSNIPER] = true,
   [TEAM_SWATMEDIC] = true,
   [TEAM_MAYORSDAUGHTER] = true
}

Not sure what to do :/

Offline [NG:A] The Skrub King

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: Custom jobs added to governement access
« Reply #3 on: October 20, 2015, 02:20:25 PM »
It's fine sorted it now, you have to add the custom jobs into the jobs.lua right at the bottom under your custom jobs, this gives them access to warranting, and if you go into the doorgroups.lua, then add the following custom jobs to the door group, which enables them to unlock the PD doors.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Custom jobs added to governement access
« Reply #4 on: October 20, 2015, 03:43:41 PM »
If you KNOW it's off topic, don't ask in the help section of the forum intended for ULib and ULX.
Moving to off topic, as this doesn't even seem to be a developers corner section question.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming