Discord
Steam
/
Developers
/
Categories no ..
Login/Join
Event Log
Categories no in order
3 replies, posted
Search
In This Thread
I can't get the categories in order please help. f4 menu screenshots http://prntscr.com/nslpdk https://files.facepunch.com/forum/upload/348462/a93a8fda-830e-4389-8d02-ece897fe7779/Screenshot_2.png https://files.facepunch.com/forum/upload/348462/1acd2dd7-db9b-4872-a7b9-8d82c8aa6382/Screenshot_1.png --[[----------------------------------------------------------------------- Categories --------------------------------------------------------------------------- The categories of the default F4 menu. Please read this page for more information: http://wiki.darkrp.com/index.php/DarkRP:Categories In case that page can't be reached, here's an example with explanation: DarkRP.createCategory{ name = "Citizens", -- The name of the category. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo". startExpanded = true, -- Whether the category is expanded when you open the F4 menu. color = Color(0, 107, 0, 255), -- The color of the category header. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT. 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. } Add new categories under the next line! ---------------------------------------------------------------------------]] DarkRP.createCategory{ name = "Police", categorises = "jobs", startExpanded = true, color = Color(0, 26, 255, 255), canSee = function(ply) return true end, sortOrder = 100, } DarkRP.createCategory{ name = "EMS", categorises = "jobs", startExpanded = true, color = Color(17, 85, 119, 255), canSee = function(ply) return true end, sortOrder = 102, } DarkRP.createCategory{ name = "Fire Department", categorises = "jobs", startExpanded = true, color = Color(255, 0, 0, 255), canSee = function(ply) return true end, sortOrder = 103, } DarkRP.createCategory{ name = "Government", categorises = "jobs", startExpanded = true, color = Color(194, 51, 51, 255), canSee = function(ply) return true end, sortOrder = 104, } DarkRP.createCategory{ name = "Criminals", categorises = "jobs", startExpanded = true, color = Color(107, 0, 201), canSee = function(ply) return true end, sortOrder = 105, } DarkRP.createCategory{ name = "Custom Class", categorises = "jobs", startExpanded = true, color = Color(184, 0, 0), canSee = function(ply) return true end, sortOrder = 106, } DarkRP.createCategory{ name = "Staff", categorises = "jobs", startExpanded = true, color = Color(0, 191, 255), canSee = function(ply) return true end, sortOrder = 107, } DarkRP.createCategory{ name = "Specials", categorises = "shipments", startExpanded = true, color = Color(255, 255, 255, 255), canSee = function(ply) return true end, sortOrder = 25 } DarkRP.createCategory{ name = "Printer", categorises = "entities", startExpanded = true, color = Color(0, 255, 86, 255), canSee = function(ply) return true end, sortOrder = 26, } DarkRP.createCategory{ name = "Bitcoin", categorises = "entities", startExpanded = true, color = Color(34, 85, 85, 255), canSee = function(ply) return true end, sortOrder = 27, } DarkRP.createCategory{ name = "Lean Production", categorises = "entities", startExpanded = true, color = Color(17, 85, 153, 255), canSee = function(ply) return true end, sortOrder = 28, } DarkRP.createCategory{ name = "Jewelry Store", categorises = "entities", startExpanded = true, color = Color(34, 85, 85, 255), canSee = function(ply) return true end, sortOrder = 29, } DarkRP.createCategory{ name = "Snipers", categorises = "shipments", startExpanded = true, color = Color(43, 135, 201, 255), canSee = function(ply) return true end, sortOrder = 30, } DarkRP.createCategory{ name = "Shotguns", categorises = "shipments", startExpanded = true, color = Color(43, 135, 201, 255), canSee = function(ply) return true end, sortOrder = 31, } DarkRP.createCategory{ name = "Rifles", categorises = "shipments", startExpanded = true, color = Color(43, 135, 201, 255), canSee = function(ply) return true end, sortOrder = 32, }
DarkRP
yep thats it thanks
i got the same problem with the same f4 menu but i sorted them with sortnumber and additionally put the code on the spot it should be sorted on
Sorry, you need to
Log In
to post a reply to this thread.