Well I got SH F4 Menu and i got all my shipments together is there any way to split them just to make a line betweet with text like Pistols,Snipers,SMGs,ammo etc..I do have categories for shipments but...It doesn't work it doesn't make them sepereted..Here is picture of what I want and my current code from categories and shipments
https://i.imgur.com/H6eIpXq.jpg
Category
DarkRP.createCategory{
name = "Shotguns", -- The name of the category.
categorises = "shipments", -- 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(173, 255, 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 = 2, -- 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.
}
Shipment
DarkRP.createShipment("Winchester 87", {
model = "models/weapons/w_winchester_1887.mdl",
entity = "m9k_1887winchester",
amount = 10,
price = 9750,
separate = false,
pricesep = 0,
noship = false,
category = "Shotguns",
allowed = {TEAM_GUN},
customCheck = function(ply) return
table.HasValue({TEAM_GUN}, ply:Team())
end,
CustomCheckFailMsg = "Only available for Gun Dealer",
})
Edit the menu.
Sorry, you need to Log In to post a reply to this thread.