DarkRp shipment error

When I join my server i get this error:


[ERROR] gamemodes/darkrp/gamemode/config/addentities.lua:226: ')' expected near '{'
  1. unknown - gamemodes/darkrp/gamemode/config/addentities.lua:0


This is the shipment:
[lua]AddCustomShipment(“Weed”, {
model = “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl”, – The model of the item that hovers above the shipment
entity = “durgz_weed”, – the entity that comes out of the shipment
price = 1000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 125, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_DRUGDEALER}, – 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)
}) – <- Line 226
[/lua]

What is wrong with it?

Could we see the next couple of lines as it could be the start of the next shipment?

Full addentities.lua:


/*DarkRP.createShipment("Desert eagle", {
	model = "models/weapons/v_tcom_deagle.mdl",
	entity = "m9k_deagle",
	price = 3000,
	amount = 5,
	seperate = true,
	pricesep = 215,
	noship = true,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("M92 Beretta", {
	model = "models/weapons/w_beretta_m92.mdl",
	entity = "m9k_m92beretta",
	price = 3000,
	amount = 5,
	seperate = true,
	pricesep = 205,
	noship = true,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("Glock", {
	model = "models/weapons/w_dmg_glock.mdl",
	entity = "weapon_glock2",
	price = 2000,
	amount = 5,
	seperate = true,
	pricesep = 160,
	noship = true,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("P228", {
	model = "models/weapons/w_pist_p228.mdl",
	entity = "weapon_p2282",
	price = 0,
	amount = 10,
	seperate = true,
	pricesep = 185,
	noship = true,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("AK47", {
	model = "models/weapons/w_rif_ak47.mdl",
	entity = "weapon_ak472",
	price = 2450,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("MP5", {
	model = "models/weapons/w_smg_mp5.mdl",
	entity = "weapon_mp52",
	price = 2200,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("M4", {
	model = "models/weapons/w_rif_m4a1.mdl",
	entity = "weapon_m42",
	price = 2450,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("Mac 10", {
	model = "models/weapons/w_smg_mac10.mdl",
	entity = "weapon_mac102",
	price = 2150,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("Pump shotgun", {
	model = "models/weapons/w_shot_m3super90.mdl",
	entity = "weapon_pumpshotgun2",
	price = 1750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})

DarkRP.createShipment("Sniper rifle", {
	model = "models/weapons/w_snip_g3sg1.mdl",
	entity = "ls_sniper",
	price = 3750,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_GUN}
})
*/
DarkRP.createEntity("Drug lab", {
	ent = "drug_lab",
	model = "models/props_lab/crematorcase.mdl",
	price = 400,
	max = 3,
	cmd = "buydruglab",
	allowed = {TEAM_GANG, TEAM_MOB}
})

DarkRP.createEntity("Gun lab", {
	ent = "gunlab",
	model = "models/props_c17/TrapPropeller_Engine.mdl",
	price = 500,
	max = 1,
	cmd = "buygunlab",
	allowed = {TEAM_GUN}
})

AddEntity("Banana Seeds", {
	ent = "farming_seedboxbanana",
	model = "models/props_junk/cardboard_box004a.mdl",
	price = 100,
	max = 5,
	cmd = "/buybananaseeds",
	allowed = {TEAM_FARMER}
})
AddEntity("Melon Seeds", {
	ent = "farming_seedboxmelon",
	model = "models/props_junk/cardboard_box004a.mdl",
	price = 100,
	max = 5,
	cmd = "/buymelonseeds",
	allowed = {TEAM_FARMER}
})

AddEntity("Orange Seeds", {
	ent = "farming_seedboxorange",
	model = "models/props_junk/cardboard_box004a.mdl",
	price = 100,
	max = 5,
	cmd = "/buyorangeseeds",
	allowed = {TEAM_FARMER}
})

//Drug Dealer Entitiy + Medic
AddCustomShipment("Aspirin", {
        model = "models/jaanus/aspbtl.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_aspirin", -- the entity that comes out of the shipment
        price = 2000, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 250, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER, TEAM_MEDIC}, -- 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)
})

AddCustomShipment("Cigarettes", {
        model = "models/boxopencigshib.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_cigarette", -- the entity that comes out of the shipment
        price = 500, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 100, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER, TEAM_BARTENDER}, -- 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)
})

AddCustomShipment("Heroine", {
        model = "models/katharsmodels/syringe_out/syringe_out.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_heroine", -- the entity that comes out of the shipment
        price = 2500, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 350, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER}, -- 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)
})

AddCustomShipment("Lsd", {
        model = "models/smile/smile.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_lsd", -- the entity that comes out of the shipment
        price = 2000, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 300, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER}, -- 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)
})

AddCustomShipment("Mushrooms", {
        model = "models/ipha/mushroom_small.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_mushroom", -- the entity that comes out of the shipment
        price = 2000, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 300, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER}, -- 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)
})

AddCustomShipment("Weed", {
        model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", -- The model of the item that hovers above the shipment
        entity = "durgz_weed", -- the entity that comes out of the shipment
        price = 1000, -- the price of one shipment
        amount = 10, -- how many of the item go in one purchased shipment
        separate = true, -- whether the item is sold separately (usually used for guns)
        pricesep = 125, -- the price of a separately sold item
        noship = false, -- whether this item has a shipment
        allowed = {TEAM_DRUGDEALER}, -- 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)
})
//Drug Dealer.
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 200, 10, true, 40, false, {TEAM_DRUGDEALER})
	
//Barkeeper
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 75, 10, true, 15, false, {TEAM_BARTENDER, TEAM_MEDIC})
AddCustomShipment("Beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 100, 10, true, 15, false, {TEAM_BARTENDER})

//Waffendealer Waffen
AddEntity("M3 Shotgun" {
	ent = "m9k_m3",
	model = "w_benelli_m3.mdl",
	price = 2500,
	max = 5,
	cmd = "/buym3",
	allowed = {TEAM_GUN}
})

AddEntity("P90" {
	ent = "m9k_smgp90",
	model = "w_fn_p90.mdl",
	price = 3000,
	max = 5,
	cmd = "/buyp90",
	allowed = {TEAM_GUN}
})

AddEntity("SCAR" {
	ent = "m9k_scar",
	model = "w_fn_scar_h.mdl",
	price = 2250,
	max = 5,
	cmd = "/buyscar",
	allowed = {TEAM_GUN}
})

AddEntity("M4A1" {
	ent = "m9k_m4a1",
	model = "w_m4a1_iron.mdl",
	price = 2000,
	max = 5,
	cmd = "/buym4a1",
	allowed = {TEAM_GUN}
})

AddEntity("MP9 Silver" {
	ent = "m9k_mp9",
	model = "m9k_mp9.mdl",
	price = 3500,
	max = 5,
	cmd = "/buymp9",
	allowed = {TEAM_GUN}
})

AddEntity("Vector" {
	ent = "m9k_vector",
	model = "w_kriss_vector.mdl",
	price = 2600,
	max = 5,
	cmd = "/buyvector",
	allowed = {TEAM_GUN}
})

AddEntity("Glock17" {
	ent = "m9k_glock",
	model = "w_dmg_glock.mdl",
	price = 850,
	max = 5,
	cmd = "/buyglock",
	allowed = {TEAM_GUN}
})

AddEntity("Deagle" {
	ent = "m9k_deagle",
	model = "w_tcom_deagle.mdl",
	price = 1150,
	max = 5,
	cmd = "/buydeagle",
	allowed = {TEAM_GUN}
})

AddEntity("Money Printer", {
	ent = "money_printer",
	model = "models/props_c17/consolebox01a.mdl",
	price = 1000,
	max = 1,
	cmd = "/buymoneyprinter",
	customCheck = function(ply)
		return not ply:IsCP()
	end
})

AddEntity("Money Printer Cooler", {
	ent = "money_printer_cooler",
	model = "models/props_lab/reciever01a.mdl",
	price = 5000,
	max = 2,
	cmd = "/buymoneyprintercooler",
	customCheck = function(ply)
		return not ply:IsCP()
	end
})

AddEntity("Money Printer Ink", {
	ent = "money_printer_ink",
	model = "models/props_junk/metal_paintcan001b.mdl",
	price = 100,
	max = 4,
	cmd = "/buymoneyprinterink",
	customCheck = function(ply)
		return not ply:IsCP()
	end
})

Everything from M3 shotgun down to Deagle is missing a comma:

[lua]
AddEntity(“M3 Shotgun” {
– should be:
AddEntity(“M3 Shotgun”, {
[/lua]

Also, why do you have two weed shipments?

ohh, i have no idea.
Okay, i’ll try it! :smiley:

I have a second problem :frowning:
I have no weapons/shipments tab -.-"

No errors?

nope

Is it greyed out or completely missing? Make sure you are the right job.

right job, everything is okay, only the tabs are missing

What happens when you do /buy Weed (with the space)?

Are the entities showing okay in the entities tab?

Sorry for late response.

when i type /buyweed happens nothing. (no errors)
Which entities tab?

Miscellaneous tab, sorry. Make sure you’re the right job when checking too.

And I’m meaning “/buy Weed” not “/buyweed”. Shipments have the space.

Just look at the picture.
The tab is dark grey and i can’t use it!
Can we talk tomorrow, because i am going to sleep now.
(German time)

Try the weed command with the space when you wake up.

And why are your weapons not added as shipments?

Okay :smiley:

I dont want shipments for weapons, i want it so that the gundealer have to buy the weapns! (Single buy)
I will add shipments after my darkrp is finished (setup)

[editline]3rd February 2014[/editline]

Yep, the weed spawns! :smiley:
What now?

-edit-
WTF, the tabs comes back! :smiley:

But still greyed out :frowning:

Its showing in the Entity tab because you use AddEntity… aint that logic?

Use AddCustomShipment

and u spamming your server full of coderhire stuff… but its your server so I shouldn’t whine:P

You can (and should) still use AddCustomShipment and set noship to true.