Ulysses

General => Off-Topic => Topic started by: [NG:A] The Skrub King on October 20, 2015, 01:29:11 PM

Title: Custom jobs added to governement access
Post by: [NG:A] The Skrub King 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.
Title: Re: Custom jobs added to governement access
Post by: Caustic Soda-Senpai 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..
Title: Re: Custom jobs added to governement access
Post by: [NG:A] The Skrub King 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 :/
Title: Re: Custom jobs added to governement access
Post by: [NG:A] The Skrub King 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.
Title: Re: Custom jobs added to governement access
Post by: JamminR 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.