SHARE
TWEET

darkrp job

a guest Aug 17th, 2015 317 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom jobs.
  6. This file should also contain jobs from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  9.         Once you've done that, copy and paste the job to this file and edit it.
  10.  
  11. The default jobs can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  16.  
  17.  
  18. Add jobs under the following line:
  19. ---------------------------------------------------------------------------]]
  20.  
  21.  
  22. TEAM_MOB = DarkRP.createJob("Test", {
  23.         color = Color(255, 255, 255, 255),
  24.         model = "models/player/gman_high.mdl",
  25.         description = [[This is a test job.
  26.                       With a multiple lined description.]],
  27.         description = "This is also a test job.\n\rWith a multiple lined description.",
  28.         weapons = {
  29.                 "lockpick",
  30.                 "unarrest_stick",
  31.                 "weapon_tmp"
  32.         },
  33.         command = "test",
  34.         max = 1,
  35.         salary = GAMEMODE.Config.normalsalary * 2,
  36.         admin = 0,
  37.         vote = false,
  38.         hasLicense = false,
  39.         category = "Test job",
  40. })
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. --[[---------------------------------------------------------------------------
  49. Define which team joining players spawn into and what team you change to if demoted
  50. ---------------------------------------------------------------------------]]
  51. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  52.  
  53.  
  54. --[[---------------------------------------------------------------------------
  55. Define which teams belong to civil protection
  56. Civil protection can set warrants, make people wanted and do some other police related things
  57. ---------------------------------------------------------------------------]]
  58. GAMEMODE.CivilProtection = {
  59.         [TEAM_POLICE] = true,
  60.         [TEAM_CHIEF] = true,
  61.         [TEAM_MAYOR] = true,
  62. }
  63.  
  64. --[[---------------------------------------------------------------------------
  65. Jobs that are hitmen (enables the hitman menu)
  66. ---------------------------------------------------------------------------]]
  67. DarkRP.addHitmanTeam(TEAM_MOB)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top