Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 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 = "Creatures",
  25. categorises = "jobs",
  26. startExpanded = false,
  27. color = Color(135, 0, 0, 255),
  28. canSee = function(ply) return true end,
  29. sortOrder = 29,
  30. }
  31. DarkRP.createCategory{
  32. name = "Civil Union",
  33. categorises = "jobs",
  34. startExpanded = false,
  35. color = Color(0, 121, 158, 255),
  36. canSee = function(ply) return true end,
  37. sortOrder = 28,
  38. }
  39. DarkRP.createCategory{
  40. name = "Resistance",
  41. categorises = "jobs",
  42. startExpanded = false,
  43. color = Color(87, 87, 87, 255),
  44. canSee = function(ply) return true end,
  45. sortOrder = 27,
  46. }
  47. DarkRP.createCategory{
  48. name = "Rifles",
  49. categorises = "shipments",
  50. startExpanded = true,
  51. color = Color(35, 18, 138, 255),
  52. canSee = function(ply) return table.HasValue({}, ply:Team()) end,
  53. sortOrder = 38,
  54. }
  55. DarkRP.createCategory{
  56. name = "SMG",
  57. categorises = "shipments",
  58. startExpanded = true,
  59. color = Color(136, 138, 18, 255),
  60. canSee = function(ply) return table.HasValue({}, ply:Team()) end,
  61. sortOrder = 37,
  62. }
  63. DarkRP.createCategory{
  64. name = "Other",
  65. categorises = "shipments",
  66. startExpanded = true,
  67. color = Color(138, 61, 18, 255),
  68. canSee = function(ply) return table.HasValue({}, ply:Team()) end,
  69. sortOrder = 35,
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement