Advertisement
SlyStone

M9K Catergories Example

Apr 8th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. DarkRP.createCategory{
  2.  
  3. name = "Sub Machine Guns", -- The name of the category.
  4.  
  5. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  6.  
  7. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  8.  
  9. color = Color(0, 107, 0, 255), -- The color of the category header.
  10.  
  11. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  12.  
  13. 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.
  14.  
  15. }
  16.  
  17. DarkRP.createCategory{
  18.  
  19. name = "Pistols", -- The name of the category.
  20.  
  21. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  22.  
  23. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  24.  
  25. color = Color(0, 107, 0, 255), -- The color of the category header.
  26.  
  27. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  28.  
  29. sortOrder = 1, -- 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. }
  32.  
  33. DarkRP.createCategory{
  34.  
  35. name = "Rifles", -- The name of the category.
  36.  
  37. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  38.  
  39. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  40.  
  41. color = Color(0, 107, 0, 255), -- The color of the category header.
  42.  
  43. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  44.  
  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. }
  48.  
  49. DarkRP.createCategory{
  50.  
  51. name = "Snipers", -- The name of the category.
  52.  
  53. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  54.  
  55. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  56.  
  57. color = Color(0, 107, 0, 255), -- The color of the category header.
  58.  
  59. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  60.  
  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. }
  64.  
  65. DarkRP.createCategory{
  66.  
  67. name = "Shotguns", -- The name of the category.
  68.  
  69. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  70.  
  71. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  72.  
  73. color = Color(0, 107, 0, 255), -- The color of the category header.
  74.  
  75. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  76.  
  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. }
  80.  
  81. DarkRP.createCategory{
  82.  
  83. name = "Hot Explosives", -- The name of the category.
  84.  
  85. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  86.  
  87. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  88.  
  89. color = Color(0, 107, 0, 255), -- The color of the category header.
  90.  
  91. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  92.  
  93. sortOrder = 1, -- 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.
  94.  
  95. }
  96.  
  97. DarkRP.createCategory{
  98.  
  99. name = "Specialties", -- The name of the category.
  100.  
  101. categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
  102.  
  103. startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
  104.  
  105. color = Color(0, 107, 0, 255), -- The color of the category header.
  106.  
  107. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
  108.  
  109. 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.
  110.  
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement