Im getting an error on my gun shipments that I’ve never seen before so im not sure whats wrong:
[ERROR] A runtime error has occurred in "your custom shipments" on line -1.
The best help I can give you is this:
The category of "M92 Beretta" ("Pistols") does not exist!
Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
your custom shipments
And it does this for each shipment. I’ve added the categories for each one, and I already checked to see if it was just a simple spelling error on either the category or shipment but they match. The categories and the guns show up in my F4 menu, so it isnt game breaking. Still would rather not have 14 script errors everytime someone joins though, so any help would be appreciated. Here is the Pistols category for the M92 Beretta example:
DarkRP.createCategory{
name = "Pistols",
categorises = "weapons",
startExpanded = true,
color = Color(171, 15, 15, 255),
canSee = function(ply) return table.HasValue({TEAM_GUN, TEAM_HEAVY}, ply:Team()) end,
sortOrder = 10
}