Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 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 = "Admin/Moderator",
  25.     categorises = "jobs",
  26.     startExpanded = false,
  27.     color = Color( 66, 78, 244),
  28.     canSee = function(ply) return true end,
  29.     sortOrder = 1,
  30. }
  31. DarkRP.createCategory{
  32.     name = "Civil Protection",
  33.     categorises = "jobs",
  34.     startExpanded = true,
  35.     color = Color(25, 25, 170, 255),
  36.     canSee = fp{fn.Id, true},
  37.     sortOrder = 101,
  38. }
  39.  
  40.  
  41. DarkRP.createCategory{
  42.     name = "Citizens",
  43.     categorises = "jobs",
  44.     startExpanded = true,
  45.     color = Color(0, 107, 0, 255),
  46.     canSee = fp{fn.Id, true},
  47.     sortOrder = 100,
  48. }
  49. DarkRP.createCategory{
  50.     name = "Gangsters",
  51.     categorises = "jobs",
  52.     startExpanded = true,
  53.     color = Color(75, 75, 75, 255),
  54.     canSee = fp{fn.Id, true},
  55.     sortOrder = 101,
  56. }
  57. DarkRP.createCategory{
  58.     name = "Other",
  59.     categorises = "jobs",
  60.     startExpanded = true,
  61.     color = Color(0, 107, 0, 255),
  62.     canSee = fp{fn.Id, true},
  63.     sortOrder = 255,
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement