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_MAYOR = DarkRP.createJob("Mayor", {
- color = Color(94, 54, 255, 255),
- model = "models/player/breen.mdl",
- description = [[The Mayor of the city creates laws to govern the city.
- If you are the mayor you may create and accept warrants.
- Type /lottery <cost> to start a lottery.
- Type /wanted <name> to warrant a player.
- Type /jailpos to set the Jail Position.
- Type /lockdown initiate a lockdown of the city.
- Everyone must be inside during a lockdown.
- The cops patrol the area.
- /unlockdown to end a lockdown]],
- weapons = {},
- command = "mayor",
- max = 1,
- salary = 50,
- admin = 0,
- vote = true,
- hasLicense = false,
- mayor = true,
- help = {
- "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
- "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
- "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
- "Type /lockdown to initiate a lockdown",
- "Type /unlockdown to end a lockdown",
- "Type /placelaws to place a screen containing the laws.",
- "Type /addlaw and /removelaw to edit the laws.",
- "Type /lottery [Cost to buy in] to start a lottery."
- },
- PlayerDeath = function(ply, weapon, killer)
- if( ply:Team() == TEAM_MAYOR ) then
- ply:changeTeam( GAMEMODE.DefaultTeam, true )
- for k,v in pairs( player.GetAll() ) do
- v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
- end
- end
- end
- })
- TEAM_HITMAN = DarkRP.createJob("Hitman", {
- color = Color(102, 0, 0, 255),
- model = "models/player/leet.mdl",
- description = [[As a hitman, you recieve hit requests from people."
- If you accept the hit request, you must kill the designated person.
- You start with a gun license, but you must purchase your own weapon.
- Don't get caught killing your target, you may get arrested.]],
- weapons = {},
- command = "hitman",
- max = 1,
- salary = 15,
- admin = 0,
- vote = false,
- hasLicense = true,
- })
- TEAM_HOBO = DarkRP.createJob("Hobo", {
- color = Color(128, 60, 0, 255),
- model = "models/player/corpse1.mdl",
- description = [[The lowest member of society. Everybody laughs at you.
- You have no home.
- Beg for your food and money
- Sing for everyone who passes to get money
- Make your own wooden home somewhere in a corner or outside someone else's door]],
- weapons = {"weapon_bugbait"},
- command = "hobo",
- max = 0,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true
- })
- TEAM_CITIZEN = DarkRP.createJob("Citizen", {
- color = Color(20, 173, 0, 255),
- model = {
- "models/player/Group01/Female_01.mdl",
- "models/player/Group01/Female_02.mdl",
- "models/player/Group01/Female_03.mdl",
- "models/player/Group01/Female_04.mdl",
- "models/player/Group01/Female_06.mdl",
- "models/player/group01/male_01.mdl",
- "models/player/Group01/Male_02.mdl",
- "models/player/Group01/male_03.mdl",
- "models/player/Group01/Male_04.mdl",
- "models/player/Group01/Male_05.mdl",
- "models/player/Group01/Male_06.mdl",
- "models/player/Group01/Male_07.mdl",
- "models/player/Group01/Male_08.mdl",
- "models/player/Group01/Male_09.mdl"
- },
- description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
- weapons = {},
- command = "citizen",
- max = 0,
- salary = 15,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- })
- /*---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------*/
- GAMEMODE.DefaultTeam = TEAM_HOBO
- /*---------------------------------------------------------------------------
- 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,
- }
- /*---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement