Hey there Im having trouble with one of my shipments I have this here and it is under the Gun Dealer shipments but if the gun dealer buys it then it says unable to buy it.
[lua]
AddCustomShipment("Molotov Cocktail", {
model = "models/props_junk/garbage_glassbottle003a.mdl",
entity = "fire_molotov",
price = 6000,
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_BMD},
[/lua]
but with my other Black Market Dealer shipments they arent under the Gun Dealer shipments heres an example of one that doesnt show for the Gun Dealer
[lua]
AddCustomShipment("Lock Pick", "models/weapons/w_crowbar.mdl", "lockpick", 5000, 10, false, nil, false, {TEAM_BMD})
[/lua]
Any reason why it is doing this?
In both, you said the allowed team was TEAM_BMD, not gun dealer.
yes but the Molotov it shows up in the gun dealer but i want it to be only bmd
Is that the entire shipment? If so, you are missing a close bracket, and you have a comma after allowed, which should be the last line.
what do you mean all my shipments are like that
[url]http://facepunch.com/showthread.php?t=1381146&p=44405727&viewfull=1#post44405727[/url]
Welcome to Facepunch, here's the DarkRP help thread: [url]http://facepunch.com/showthread.php?t=1249475[/url]
Shipment fields: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields[/url]
my shipments are no different from those..
You don't have a close bracket or parenthesis.
he shows me this [lua]
AddCustomShipment( "Water", {
model = "models/drug_mod/the_bottle_of_water.mdl";
entity = "durgz_water";
price = 450; -- the price of one shipment
amount = 15; -- how many of the item go in one purchased shipment
separate = true; -- whether the item is sold separately (usually used for guns)
pricesep = 30; -- the price of a separately sold item
noship = false; -- whether this item has a shipment
allowed = { TEAM_DRUGZ }; -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
buttonColor = Color( 255, 255, 255, 255 ); -- Optional: The color of the button in the F4 menu,
[/lua]
this is mine
[lua]
AddCustomShipment("Molotov Cocktail", {
model = "models/props_junk/garbage_glassbottle003a.mdl",
entity = "fire_molotov",
price = 6000,
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_BMD},
})
[/lua] im not sure what is different
You're missing a } to close the table for argument 2 and ) to end the shipment function.
[lua]AddCustomShipment( "Water", {
model = "models/drug_mod/the_bottle_of_water.mdl";
entity = "durgz_water";
price = 450; -- the price of one shipment
amount = 15; -- how many of the item go in one purchased shipment
separate = true; -- whether the item is sold separately (usually used for guns)
pricesep = 30; -- the price of a separately sold item
noship = false; -- whether this item has a shipment
allowed = { TEAM_DRUGZ }; -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
buttonColor = Color( 255, 255, 255, 255 ); } ); -- Optional: The color of the button in the F4 menu,[/lua]
Sorry, you need to Log In to post a reply to this thread.