Guest User

LUA Error GMOD

a guest
Jul 10th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  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. TEAM_THIEF = DarkRP.createJob("Thief", {
  22. color = Color(0, 0, 0, 255),
  23. model = "models/player/arctic.mdl",
  24. description = [[You are a thief, rob people, lockpick their house and illegal printers.]],
  25. weapons = {"lockpick"},
  26. command = "thief",
  27. max = 2,
  28. salary = 65,
  29. admin = 0,
  30. vote = false,
  31. hasLicense = false
  32. }),
  33.  
  34. TEAM_MD = DarkRP.createJob("Mayors Daughter", {
  35. color = Color(255,100,100,255),
  36. model = "models/player/alyx.mdl",
  37. description = [[You are the mayors daughter, walk around with your dad
  38. just chill around. But be careful, you never know when somebody
  39. is waiting to kidnap you!]],
  40. weapons = {},
  41. command = "mayorsdaughter",
  42. max = 1,
  43. salary = 80,
  44. admin = 0,
  45. vote = false,
  46. hasLicense = false
  47. })
  48.  
  49.  
  50.  
  51.  
  52.  
  53. --[[---------------------------------------------------------------------------
  54. Define which team joining players spawn into and what team you change to if demoted
  55. ---------------------------------------------------------------------------]]
  56. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  57.  
  58.  
  59. --[[---------------------------------------------------------------------------
  60. Define which teams belong to civil protection
  61. Civil protection can set warrants, make people wanted and do some other police related things
  62. ---------------------------------------------------------------------------]]
  63. GAMEMODE.CivilProtection = {
  64. [TEAM_POLICE] = true,
  65. [TEAM_CHIEF] = true,
  66. [TEAM_MAYOR] = true,
  67. }
  68.  
  69. --[[---------------------------------------------------------------------------
  70. Jobs that are hitmen (enables the hitman menu)
  71. ---------------------------------------------------------------------------]]
  72. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment