DarkRP: All classes can buy all shipments.

I couldn’t really decide which subforum server help goes in, so I hope this is the right one. Long story short; I have a darkrp server with custom shipments, and I set certain shipments to be the only ones available to buy certain things, like guns. But all of a sudden, all my classes can buy every job-specific shipment, even though they shouldn’t be able to. I have the allowed = () line for every shipment with it’s designated job, so I have no idea what is going on. If anyone could help that would be great. I need this answer ASAP so if you could help out as much as you can that would be great.

Post one of your shipments’ code that has this problem.

DarkRP.createShipment(“Water”, {
model = “models/drug_mod/the_bottle_of_water.mdl”,
entity = “durgz_water”,
price = 15,
amount = 1,
seperate = true,
pricesep = 15,
noship = false,
allowed = {TEAM_BARTENDER},
})



DarkRP.createShipment("Water", {
    model = "models/drug_mod/the_bottle_of_water.mdl",
    entity = "durgz_water",
    price = 15,
    amount = 1,
    seperate = false,
    pricesep = nil,
    noship = false,
    allowed = {TEAM_BARTENDER}
})


Will work for sure. Make sure you’ve restarted the server after, and post any errors you get.

Check your config file, there should be a function to “restrict /buy”

Thanks for the help, it works perfectly now. Thanks again.