Advertisement
Guest User

My jobs.lua

a guest
Jan 31st, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. /*---------------------------------------------------------------------------
  3. DarkRP custom jobs
  4. ---------------------------------------------------------------------------
  5.  
  6. This file contains your custom jobs.
  7. This file should also contain jobs from DarkRP that you edited.
  8.  
  9. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  10. Once you've done that, copy and paste the job to this file and edit it.
  11.  
  12. The default jobs can be found here:
  13. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  14.  
  15. For examples and explanation please visit this wiki page:
  16. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  17.  
  18.  
  19. Add jobs under the following line:
  20. ---------------------------------------------------------------------------*/
  21.  
  22. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  23. color = Color(94, 54, 255, 255),
  24. model = "models/player/breen.mdl",
  25. description = [[The Mayor of the city creates laws to govern the city.
  26. If you are the mayor you may create and accept warrants.
  27. Type /lottery <cost> to start a lottery.
  28. Type /wanted <name> to warrant a player.
  29. Type /jailpos to set the Jail Position.
  30. Type /lockdown initiate a lockdown of the city.
  31. Everyone must be inside during a lockdown.
  32. The cops patrol the area.
  33. /unlockdown to end a lockdown]],
  34. weapons = {},
  35. command = "mayor",
  36. max = 1,
  37. salary = 50,
  38. admin = 0,
  39. vote = true,
  40. hasLicense = false,
  41. mayor = true,
  42. help = {
  43. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  44. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
  45. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
  46. "Type /lockdown to initiate a lockdown",
  47. "Type /unlockdown to end a lockdown",
  48. "Type /placelaws to place a screen containing the laws.",
  49. "Type /addlaw and /removelaw to edit the laws.",
  50. "Type /lottery [Cost to buy in] to start a lottery."
  51. },
  52. PlayerDeath = function(ply, weapon, killer)
  53. if( ply:Team() == TEAM_MAYOR ) then
  54. ply:changeTeam( GAMEMODE.DefaultTeam, true )
  55. for k,v in pairs( player.GetAll() ) do
  56. v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
  57. end
  58. end
  59. end
  60. })
  61.  
  62. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  63. color = Color(102, 0, 0, 255),
  64. model = "models/player/leet.mdl",
  65. description = [[As a hitman, you recieve hit requests from people."
  66. If you accept the hit request, you must kill the designated person.
  67. You start with a gun license, but you must purchase your own weapon.
  68. Don't get caught killing your target, you may get arrested.]],
  69. weapons = {},
  70. command = "hitman",
  71. max = 1,
  72. salary = 15,
  73. admin = 0,
  74. vote = false,
  75. hasLicense = true,
  76. })
  77.  
  78. TEAM_HOBO = DarkRP.createJob("Hobo", {
  79. color = Color(128, 60, 0, 255),
  80. model = "models/player/corpse1.mdl",
  81. description = [[The lowest member of society. Everybody laughs at you.
  82. You have no home.
  83. Beg for your food and money
  84. Sing for everyone who passes to get money
  85. Make your own wooden home somewhere in a corner or outside someone else's door]],
  86. weapons = {"weapon_bugbait"},
  87. command = "hobo",
  88. max = 0,
  89. salary = 0,
  90. admin = 0,
  91. vote = false,
  92. hasLicense = false,
  93. candemote = false,
  94. hobo = true
  95. })
  96.  
  97. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  98. color = Color(20, 173, 0, 255),
  99. model = {
  100. "models/player/Group01/Female_01.mdl",
  101. "models/player/Group01/Female_02.mdl",
  102. "models/player/Group01/Female_03.mdl",
  103. "models/player/Group01/Female_04.mdl",
  104. "models/player/Group01/Female_06.mdl",
  105. "models/player/group01/male_01.mdl",
  106. "models/player/Group01/Male_02.mdl",
  107. "models/player/Group01/male_03.mdl",
  108. "models/player/Group01/Male_04.mdl",
  109. "models/player/Group01/Male_05.mdl",
  110. "models/player/Group01/Male_06.mdl",
  111. "models/player/Group01/Male_07.mdl",
  112. "models/player/Group01/Male_08.mdl",
  113. "models/player/Group01/Male_09.mdl"
  114. },
  115. 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.]],
  116. weapons = {},
  117. command = "citizen",
  118. max = 0,
  119. salary = 15,
  120. admin = 0,
  121. vote = false,
  122. hasLicense = false,
  123. candemote = false,
  124. })
  125.  
  126. /*---------------------------------------------------------------------------
  127. Define which team joining players spawn into and what team you change to if demoted
  128. ---------------------------------------------------------------------------*/
  129. GAMEMODE.DefaultTeam = TEAM_HOBO
  130.  
  131.  
  132. /*---------------------------------------------------------------------------
  133. Define which teams belong to civil protection
  134. Civil protection can set warrants, make people wanted and do some other police related things
  135. ---------------------------------------------------------------------------*/
  136. GAMEMODE.CivilProtection = {
  137. [TEAM_POLICE] = true,
  138. [TEAM_CHIEF] = true,
  139. [TEAM_MAYOR] = true,
  140. }
  141.  
  142. /*---------------------------------------------------------------------------
  143. Jobs that are hitmen (enables the hitman menu)
  144. ---------------------------------------------------------------------------*/
  145. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement