I tried the darkrp forums but it seems this might be a Darkrp glitch. I already did the fix of #1937
I am trying to make categories for two jobs that have access to shipments. One is a gun dealer and the other a salesman. I am using this for the canSee
/
General Salesman
/
DarkRP.createCategory{
name = "Health",
categorises = "shipments",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return ply:Team() == TEAM_GENERAL end,
sortOrder = 1,
}
I tried the darkrp forums but it seems this might be a Darkrp glitch. I already did the fix of #1937 I am trying to make categories for two jobs that have access to shipments. One is a gun dealer and the other a salesman. I am using this for the canSee / General Salesman / DarkRP.createCategory{ name = "Health", categorises = "shipments", startExpanded = true, color = Color(0, 107, 0, 255), canSee = function(ply) return ply:Team() == TEAM_GENERAL end, sortOrder = 1, }
DarkRP.createCategory{ name = "Locksmith", categorises = "shipments", startExpanded = true, color = Color(0, 107, 0, 255), canSee = function(ply) return ply:Team() == TEAM_GENERAL end, sortOrder = 2, }
/ Shipments /
DarkRP.createCategory{ name = "Pistols", categorises = "shipments", startExpanded = true, color = Color(0, 107, 0, 255), canSee = function(ply) return ply:Team() == TEAM_GUN end, sortOrder = 1, }
DarkRP.createCategory{ name = "Rifles", categorises = "shipments", startExpanded = true, color = Color(0, 107, 0, 255), canSee = function(ply) return ply:Team() == TEAM_GUN end, sortOrder = 5, }
DarkRP.createCategory{ name = "Shotguns/Snipers/Submachine Guns", categorises = "shipments", startExpanded = true, color = Color(0, 107, 0, 255), canSee = function(ply) return ply:Team() == TEAM_GUN end, sortOrder = 225, } Gun Dealer has these categories created.
The salesman still has the rifles and any other categories that I add to the gun dealer.