Advertisement
theredpirate

Untitled

Nov 18th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 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.  
  24. -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools
  25. DarkRP.createCategory{
  26. name = "Criminals",
  27. categorises = "jobs",
  28. startExpanded = true,
  29. color = Color(44, 15, 15, 255),
  30. canSee = function(ply) return true end,
  31. sortOrder = 24,
  32. }
  33.  
  34. -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools
  35. DarkRP.createCategory{
  36. name = "Meth Items",
  37. categorises = "entities",
  38. startExpanded = true,
  39. color = Color(57, 189, 186, 255),
  40. canSee = function(ply) return table.HasValue({TEAM_METH}, ply:Team()) end,
  41. sortOrder = 23,
  42. }
  43.  
  44. -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools
  45. DarkRP.createCategory{
  46. name = "Staff",
  47. categorises = "jobs",
  48. startExpanded = true,
  49. color = Color(112, 187, 60, 255),
  50. canSee = function(ply) return true end,
  51. sortOrder = 26,
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement