General > Off-Topic

Custom jobs added to governement access

(1/1)

[NG:A] The Skrub King:
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.

Caustic Soda-Senpai:
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..

[NG:A] The Skrub King:
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 :/

[NG:A] The Skrub King:
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.

JamminR:
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.

Navigation

[0] Message Index

Go to full version