Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*---------------------------------------------------------------------------
- DarkRP custom jobs
- ---------------------------------------------------------------------------
- This file contains your custom jobs.
- This file should also contain jobs from DarkRP that you edited.
- Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
- Once you've done that, copy and paste the job to this file and edit it.
- The default jobs can be found here:
- https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
- For examples and explanation please visit this wiki page:
- http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
- Add jobs under the following line:
- ---------------------------------------------------------------------------*/
- TEAM_ARMED = DarkRP.createJob("Armed police", {
- color = Color(0, 0, 0, 255),
- model = {"models/player/pmc_4/pmc__01.mdl", "models/player/pmc_4/pmc__02.mdl", "models/player/pmc_4/pmc__03.mdl", "models/player/pmc_4/pmc__04.mdl", "models/player/pmc_4/pmc__05.mdl", "models/player/pmc_4/pmc__6.mdl", "models/player/pmc_4/pmc__07.mdl", "models/player/pmc_4/pmc__08.mdl", "models/player/pmc_4/pmc__09.mdl", "models/player/pmc_4/pmc__10.mdl", "models/player/pmc_4/pmc__11.mdl", "models/player/pmc_4/pmc__12.mdl", "models/player/pmc_4/pmc__13.mdl", "models/player/pmc_4/pmc__14.mdl"},
- description = [[Armed police team, can raid.]],
- weapons = {"weapon_on_glock17", "weapon_on_baton", "weapon_on_mp5", "weapon_on_shotgun_xm"},
- command = "armed",
- max = 5,
- salary = 150,
- admin = 0,
- vote = true,
- hasLicense = true,
- NeedToChangeFrom = TEAM_POLICE,
- ammo = {
- ["pistol"] = 60,
- },
- })
- TEAM_FBI = DarkRP.createJob("FBI", {
- color = Color(25, 25, 170, 255),
- model = {"models/fbi_pack/fbi_01.mdl", "models/fbi_pack/fbi_02.mdl", "models/fbi_pack/fbi_03.mdl", "models/fbi_pack/fbi_04.mdl", "models/fbi_pack/fbi_05.mdl", "models/fbi_pack/fbi_06.mdl", "models/fbi_pack/fbi_07.mdl", "models/fbi_pack/fbi_08.mdll", "models/fbi_pack/fbi_09.mdl"},
- description = [[Federal Bureau of Investigation. Hunt down criminals.]],
- weapons = {"m9k_usp", "m9k_m416", "door_ram", "weaponchecker", "weapon_arc_atmcard", "handcuffs", "riotshield"},
- command = "fbi",
- max = 10,
- salary = 120,
- admin = 0,
- vote = false,
- customCheck = function(ply) return table.HasValue({"whitelist1", "superadmin"}, ply:GetNWString("usergroup")) end,
- CustomCheckFailMsg = "You aren't on the Emergency services white-list, see the RP website to apply for this faction."
- })
- /*---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------*/
- GAMEMODE.DefaultTeam = TEAM_CITIZEN
- /*---------------------------------------------------------------------------
- Define which teams belong to civil protection
- Civil protection can set warrants, make people wanted and do some other police related things
- ---------------------------------------------------------------------------*/
- GAMEMODE.CivilProtection = {
- [TEAM_POLICE] = true,
- [TEAM_CHIEF] = true,
- [TEAM_MAYOR] = true,
- [TEAM_CO19] = false,
- }
- /*---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement