• DarkRP allowed not working
    4 replies, posted
I'm trying to make a few simple entities for different jobs to be able to sell exclusively but the "allowed" field doesn't seem to be doing its job. When I put in my desired jobs in the field, the shipments are still available for every class. Here is an example of one of my shipments: [CODE] DarkRP.createShipment("Apple Seeds", { entity = "fs_apple_seeds", model = "models/props_lab/box01a.mdl", price = 200, -- the price of one shipmentity amount = 10, -- how many of the item go in one purchased shipmentity separate = true, -- whether the item is sold separately (usually used for guns) pricesep = 200, -- the price of a separately sold item max = 20, category = "Farming", allowed = {TEAM_FARMER}, }) [/CODE]
Since it's the last field it should not have a comma after it. Maybe try removing the {} on it.
I'm certain LUA permits this specific syntax error.
I don't see anything wrong in your definition. Can you post your TEAM_FARMER's definition as well (although I don't think it would help)? Are there any runtime errors?
Im having the same problem. Any fix yet?
Sorry, you need to Log In to post a reply to this thread.