Zaktak

Categories Backup

Nov 30th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.04 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. DarkRP.createCategory{
  25.     name = "Force Sensitive",
  26.     categorises = "jobs",
  27.     startExpanded = true,
  28.     color = Color(11, 39, 201, 255),
  29.     canSee = function(ply) return true end,
  30.     sortOrder = 0
  31. }
  32.  
  33. DarkRP.createCategory{
  34.     name = "Jedi",
  35.     categorises = "jobs",
  36.     startExpanded = true,
  37.     color = Color(8, 224, 16, 255),
  38.     canSee = function(ply) return true end,
  39.     sortOrder = 1
  40. }
  41.  
  42. DarkRP.createCategory{
  43.     name = "Jedi Council Members",
  44.     categorises = "jobs",
  45.     startExpanded = true,
  46.     color = Color(8, 224, 16, 255),
  47.     canSee = function(ply) return true end,
  48.     sortOrder = 2
  49. }
  50.  
  51. DarkRP.createCategory{
  52.     name = "Sith",
  53.     categorises = "jobs",
  54.     startExpanded = true,
  55.     color = Color(232, 10, 10, 255),
  56.     canSee = function(ply) return true end,
  57.     sortOrder = 3
  58. }
  59.  
  60. DarkRP.createCategory{
  61.     name = "Dark Council Members",
  62.     categorises = "jobs",
  63.     startExpanded = true,
  64.     color = Color(232, 10, 10, 255),
  65.     canSee = function(ply) return true end,
  66.     sortOrder = 4
  67. }
  68.  
  69. DarkRP.createCategory{
  70.     name = "Sith Guards",
  71.     categorises = "jobs",
  72.     startExpanded = true,
  73.     color = Color(232, 10, 10, 255),
  74.     canSee = function(ply) return true end,
  75.     sortOrder = 5
  76. }
  77.  
  78. DarkRP.createCategory{
  79.     name = "Sith Assassins",
  80.     categorises = "jobs",
  81.     startExpanded = true,
  82.     color = Color(232, 10, 10, 255),
  83.     canSee = function(ply) return true end,
  84.     sortOrder = 6
  85. }
  86.  
  87. DarkRP.createCategory{
  88.     name = "Eternal's Royal Family",
  89.     categorises = "jobs",
  90.     startExpanded = true,
  91.     color = Color(212, 14, 192, 255),
  92.     canSee = function(ply) return true end,
  93.     sortOrder = 10
  94. }
  95.  
  96. DarkRP.createCategory{
  97.     name = "Jedi Temple Guards",
  98.     categorises = "jobs",
  99.     startExpanded = true,
  100.     color = Color(212, 14, 192, 255),
  101.     canSee = function(ply) return true end,
  102.     sortOrder = 12
  103. }
Add Comment
Please, Sign In to add comment