fork download
  1. -- your code goes here--Villagers
  2. TEAM_VILLAGER = DarkRP.createJob("Villager", {
  3. color = Color(20, 150, 20, 255),
  4. model = {
  5. "models/humans/group1m/male_01.mdl",
  6. "models/humans/group1m/male_02.mdl",
  7. "models/humans/group1m/male_03.mdl",
  8. "models/humans/group1m/male_04.mdl",
  9. "models/humans/group1m/male_05.mdl",
  10. "models/humans/group1m/male_06.mdl",
  11. "models/humans/group1m/male_07.mdl",
  12. "models/humans/group1m/male_08.mdl",
  13. "models/humans/group1m/male_09.mdl",
  14. },
  15. description = [[You are a Villager]],
  16. weapons = {},
  17. command = "villager",
  18. max = 0,
  19. salary = 10,
  20. admin = 0,
  21. vote = false,
  22. hasLicense = false,
  23. candemote = false,
  24. category = "Villagers",
  25. })
  26. TEAM_BLACKSMITH = DarkRP.createJob("Blacksmith", {
  27. color = Color(20, 150, 20, 255),
  28. model = {
  29. "models/player/dovahkiin.mdl",
  30. },
  31. description = [[You are a Blacksmith, you set up shop and sell weapons and armor to the realm. You can set up your own shop or join a Kingdom/army and be employed to sell weapons to them.]],
  32. weapons = {},
  33. command = "blacksmith",
  34. max = 3,
  35. salary = 20,
  36. admin = 0,
  37. vote = false,
  38. hasLicense = false,
  39. candemote = false,
  40. category = "Villagers",
  41. PlayerDeath = function(ply, weapon, killer)
  42. ply:teamBan()
  43. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  44. end
  45. })
  46. TEAM_INNKEEPER = DarkRP.createJob("Innkeeper", {
  47. color = Color(20, 150, 20, 255),
  48. model = {
  49. "models/mark2580/killing/steampunk/sp_mr_foster.mdl",
  50. "models/mark2580/killing/steampunk/sp_mrs_foster.mdl",
  51. "models/player/tfa_tw3/ida.mdl",
  52. },
  53. description = [[You are an innkeeper! You job is to house and feed anyone who offers a decent price!]],
  54. weapons = {},
  55. command = "innkeeper",
  56. max = 3,
  57. salary = 30,
  58. admin = 0,
  59. vote = false,
  60. hasLicense = false,
  61. candemote = false,
  62. category = "Villagers",
  63. PlayerDeath = function(ply, weapon, killer)
  64. ply:teamBan()
  65. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  66. end
  67. })
  68. TEAM_MERCHANT = DarkRP.createJob("Merchant", {
  69. color = Color(20, 150, 20, 255),
  70. model = {
  71. "models/mailer/characters/tesv_femalekhajiit.mdl",
  72. "models/mailer/characters/tesv_malekhajiit.mdl",
  73. },
  74. description = [[You are a Merchant, you sell your wares!]],
  75. weapons = {},
  76. command = "merchant",
  77. max = 2,
  78. salary = 20,
  79. admin = 0,
  80. vote = false,
  81. hasLicense = false,
  82. candemote = false,
  83. category = "Villagers",
  84. PlayerDeath = function(ply, weapon, killer)
  85. ply:teamBan()
  86. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  87. end
  88. })
  89. TEAM_JESTER = DarkRP.createJob("Jester", {
  90. color = Color(20, 150, 20, 255),
  91. model = {
  92. "models/harlequins/male.mdl",
  93. "models/player/truebobert/injustice_harley_ame.mdl",
  94. },
  95. description = [[You are a Jester, you entertain and serve for a kingdom or town!]],
  96. weapons = {},
  97. command = "jester",
  98. max = 2,
  99. salary = 30,
  100. admin = 0,
  101. vote = false,
  102. hasLicense = false,
  103. candemote = false,
  104. category = "Villagers",
  105. PlayerDeath = function(ply, weapon, killer)
  106. ply:teamBan()
  107. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  108. end
  109. })
  110. TEAM_DOCTOR = DarkRP.createJob("Doctor", {
  111. color = Color(20, 150, 20, 255),
  112. model = {
  113. "models/player/plague_doktor/player_plague_doktor.mdl",
  114. },
  115. description = [[You are a Doctor]],
  116. weapons = {"weapon_medkit"},
  117. command = "doctor",
  118. max = 2,
  119. salary = 40,
  120. admin = 0,
  121. vote = false,
  122. hasLicense = false,
  123. candemote = false,
  124. category = "Villagers",
  125. PlayerDeath = function(ply, weapon, killer)
  126. ply:teamBan()
  127. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  128. end
  129. })
Runtime error #stdin #stdout #stderr 0s 14112KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
lua5.3: prog.lua:2: attempt to index a nil value (global 'DarkRP')
stack traceback:
	prog.lua:2: in main chunk
	[C]: in ?