Advertisement
Guest User

catagories

a guest
Jul 15th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 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 = "Custom Class", -- The name of the category.
  25. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  26. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  27. color = Color(0, 0, 0, 255), -- The color of the category header.
  28. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  29. sortOrder = 10, -- 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.
  30. }
  31. DarkRP.createCategory{
  32. name = "Staff",
  33. categorises = "jobs",
  34. startExpanded = true,
  35. color = Color(235, 71, 0, 255),
  36. canSee = function(ply) return table.HasValue({"moderator", "admin", "superadmin"}, ply:GetNWString("usergroup")) end,
  37. sortOrder = 1
  38. }
  39. DarkRP.createCategory{
  40. name = "Civil Protection", -- The name of the category.
  41. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  42. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  43. color = Color(0, 0, 0, 255), -- The color of the category header.
  44. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  45. sortOrder = 4, -- 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.
  46. }
  47. DarkRP.createCategory{
  48. name = "Citizens", -- The name of the category.
  49. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  50. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  51. color = Color(0, 0, 0, 255), -- The color of the category header.
  52. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  53. sortOrder = 2, -- 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.
  54. }
  55. DarkRP.createCategory{
  56. name = "Dealers", -- The name of the category.
  57. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  58. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  59. color = Color(0, 0, 0, 255), -- The color of the category header.
  60. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  61. sortOrder = 5, -- 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.
  62. }
  63. DarkRP.createCategory{
  64. name = "VIP", -- The name of the category.
  65. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  66. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  67. color = Color(0, 0, 0, 255), -- The color of the category header.
  68. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  69. sortOrder = 7, -- 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.
  70. }
  71. DarkRP.createCategory{
  72. name = "Criminal", -- The name of the category.
  73. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  74. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  75. color = Color(0, 0, 0, 255), -- The color of the category header.
  76. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  77. sortOrder = 3, -- 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.
  78. }
  79. DarkRP.createCategory{
  80. name = "Bank", -- The name of the category.
  81. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  82. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  83. color = Color(0, 0, 0, 255), -- The color of the category header.
  84. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  85. sortOrder = 6, -- 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.
  86. }
  87. DarkRP.createCategory{
  88. name = "Machine Guns",
  89. categorises = "shipments",
  90. startExpanded = true,
  91. color = Color(84, 40, 0, 255),
  92. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  93. sortOrder = 5
  94. }
  95.  
  96. DarkRP.createCategory{
  97. name = "SMGs",
  98. categorises = "shipments",
  99. startExpanded = true,
  100. color = Color(84, 40, 0, 255),
  101. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  102. sortOrder = 2
  103. }
  104.  
  105. DarkRP.createCategory{
  106. name = "Assault",
  107. categorises = "shipments",
  108. startExpanded = true,
  109. color = Color(84, 40, 0, 255),
  110. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  111. sortOrder = 3
  112. }
  113.  
  114. DarkRP.createCategory{
  115. name = "Shotgun",
  116. categorises = "shipments",
  117. startExpanded = true,
  118. color = Color(84, 40, 0, 255),
  119. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  120. sortOrder = 3
  121. }
  122.  
  123. DarkRP.createCategory{
  124. name = "Snipers",
  125. categorises = "shipments",
  126. startExpanded = true,
  127. color = Color(84, 40, 0, 255),
  128. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  129. sortOrder = 3
  130. }
  131.  
  132. DarkRP.createCategory{
  133. name = "Pistols",
  134. categorises = "shipments",
  135. startExpanded = true,
  136. color = Color(84, 40, 0, 255),
  137. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  138. sortOrder = 3
  139. }
  140.  
  141. DarkRP.createCategory{
  142. name = "Black Market Items",
  143. categorises = "shipments",
  144. startExpanded = true,
  145. color = Color(0, 141, 161, 255),
  146. canSee = function(ply) return table.HasValue({TEAM_BGUN}, ply:Team()) end,
  147. sortOrder = 2
  148. }
  149. DarkRP.createCategory{
  150. name = "Printers",
  151. categorises = "entities",
  152. startExpanded = true,
  153. color = Color(84, 40, 0, 255),
  154. canSee = function(ply) return table.HasValue({TEAM_GUN}, ply:Team()) end,
  155. sortOrder = 1
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement