Guest User

Categories

a guest
Dec 30th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. --[[-----------------------------------------------------------------------
  2. Categories
  3. ---------------------------------------------------------------------------
  4. The categories of the default F4 menu.
  5.  
  6. Please read this page for more information:
  7. http://wiki.darkrp.com/index.php/DarkRP:Categories
  8.  
  9. In case that page can't be reached, here's an example with explanation:
  10.  
  11. DarkRP.createCategory{
  12. name = "Citizens", -- The name of the category.
  13. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  14. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  15. color = Color(0, 107, 0, 255), -- The color of the category header.
  16. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  17. sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
  18. }
  19.  
  20.  
  21. Add new categories under the next line!
  22. ---------------------------------------------------------------------------]]
  23. DarkRP.createCategory{
  24. name = "Citizens",
  25. categorises = "jobs",
  26. startExpanded = true,
  27. color = Color(0, 107, 0, 255),
  28. canSee = function(ply) return true end,
  29. sortOrder = 1,
  30. }
  31.  
  32. DarkRP.createCategory{
  33. name = "Criminals",
  34. categorises = "jobs",
  35. startExpanded = true,
  36. color = Color(0, 107, 0, 255),
  37. canSee = function(ply) return true end,
  38. sortOrder = 2,
  39. }
  40.  
  41. DarkRP.createCategory{
  42. name = "Gangs",
  43. categorises = "jobs",
  44. startExpanded = true,
  45. color = Color(0, 107, 0, 255),
  46. canSee = function(ply) return true end,
  47. sortOrder = 3
  48. }
  49.  
  50. DarkRP.createCategory{
  51. name = "Police",
  52. categorises = "jobs",
  53. startExpanded = true,
  54. color = Color(0, 107, 0, 255),
  55. canSee = function(ply) return true end,
  56. sortOrder = 5,
  57. }
  58.  
  59.  
  60. DarkRP.createCategory{
  61. name = "SCO-19",
  62. categorises = "jobs",
  63. startExpanded = true,
  64. color = Color(0, 107, 0, 255),
  65. canSee = function(ply) return true end,
  66. sortOrder = 6,
  67. }
  68.  
  69. DarkRP.createCategory{
  70. name = "Parliamentary and Diplomatic Protection",
  71. categorises = "jobs",
  72. startExpanded = true,
  73. color = Color(0, 107, 0, 255),
  74. canSee = function(ply) return true end,
  75. sortOrder = 7,
  76. }
  77.  
  78. DarkRP.createCategory{
  79. name = "Other",
  80. categorises = "jobs",
  81. startExpanded = true,
  82. color = Color(0, 107, 0, 255),
  83. canSee = fp{fn.Id, true},
  84. sortOrder = 11,
  85. }
  86.  
  87. DarkRP.createCategory{
  88. name = "Traffic Police",
  89. categorises = "jobs",
  90. startExpanded = true,
  91. color = Color(0, 107, 0, 255),
  92. canSee = function(ply) return true end,
  93. sortOrder = 8,
  94. }
  95.  
  96. DarkRP.createCategory{
  97. name = "National Health Service",
  98. categorises = "jobs",
  99. startExpanded = true,
  100. color = Color(0, 107, 0, 255),
  101. canSee = function(ply) return true end,
  102. sortOrder = 9,
  103. }
  104.  
  105. DarkRP.createCategory{
  106. name = "Terrorist",
  107. categorises = "jobs",
  108. startExpanded = true,
  109. color = Color(0, 107, 0, 255),
  110. canSee = function(ply) return true end,
  111. sortOrder = 10,
  112. }
  113.  
  114. DarkRP.createCategory{
  115. name = "London Mafia",
  116. categorises = "jobs",
  117. startExpanded = true,
  118. color = Color(0, 107, 0, 255),
  119. canSee = function(ply) return true end,
  120. sortOrder = 10,
  121. }
  122.  
  123. DarkRP.createCategory{
  124. name = "VIP",
  125. categorises = "jobs",
  126. startExpanded = true,
  127. color = Color(0, 107, 0, 255),
  128. canSee = function(ply) return true end,
  129. sortOrder = 4,
  130. }
  131.  
  132. DarkRP.createCategory{
  133. name = "Staff",
  134. categorises = "jobs",
  135. startExpanded = true,
  136. color = Color(0, 107, 0, 255),
  137. canSee = function(ply) return true end,
  138. sortOrder = 3,
  139. }
  140.  
  141. DarkRP.createCategory{
  142. name = "Printers",
  143. categorises = "entities",
  144. startExpanded = true,
  145. color = Color(8, 0, 0, 255),
  146. canSee = function(ply) return true end,
  147. sortOrder = 1
  148. }
  149.  
  150. DarkRP.createCategory{
  151. name = "Ammo",
  152. categorises = "entities",
  153. startExpanded = true,
  154. color = Color(204, 40, 40, 255),
  155. canSee = function(ply) return true end,
  156. sortOrder = 2
  157. }
  158.  
  159. DarkRP.createCategory{
  160. name = "Other",
  161. categorises = "shipments",
  162. startExpanded = true,
  163. color = Color(0, 107, 0, 255),
  164. canSee = fp{fn.Id, true},
  165. sortOrder = 255,
  166. }
  167.  
  168. DarkRP.createCategory{
  169. name = "Rifles",
  170. categorises = "shipments",
  171. startExpanded = true,
  172. color = Color(0, 107, 0, 255),
  173. canSee = fp{fn.Id, true},
  174. sortOrder = 100,
  175. }
  176.  
  177. DarkRP.createCategory{
  178. name = "Shotguns",
  179. categorises = "shipments",
  180. startExpanded = true,
  181. color = Color(0, 107, 0, 255),
  182. canSee = fp{fn.Id, true},
  183. sortOrder = 101,
  184. }
  185.  
  186. DarkRP.createCategory{
  187. name = "Snipers",
  188. categorises = "shipments",
  189. startExpanded = true,
  190. color = Color(0, 107, 0, 255),
  191. canSee = fp{fn.Id, true},
  192. sortOrder = 102,
  193. }
  194.  
  195. DarkRP.createCategory{
  196. name = "Pistols",
  197. categorises = "weapons",
  198. startExpanded = true,
  199. color = Color(0, 107, 0, 255),
  200. canSee = fp{fn.Id, true},
  201. sortOrder = 100,
  202. }
  203.  
  204. DarkRP.createCategory{
  205. name = "Other",
  206. categorises = "weapons",
  207. startExpanded = true,
  208. color = Color(0, 107, 0, 255),
  209. canSee = fp{fn.Id, true},
  210. sortOrder = 255,
  211. }
  212.  
  213. DarkRP.createCategory{
  214. name = "Mechanic",
  215. categorises = "entities",
  216. startExpanded = true,
  217. color = Color(204, 17, 17, 255),
  218. canSee = function(ply) return table.HasValue({TEAM_MECHANIC}, ply:Team()) end,
  219. sortOrder = 50
  220. }
Advertisement
Add Comment
Please, Sign In to add comment