Help from DarkRP

When trying to add Shipment when buying it says Shipment not available
Here is my code

DarkRP.createShipment(“M82”, {
model = “models/Items/BoxMRounds.mdl”,
entity = “fas2_att_compm4”,
price = 62000,
amount = 3,
seperate = true,
pricesep = 500,
noship = true,
allowed = {TEAM_GUN},
})

Sorry if there are mistakes because I use a translator


noship = true

^ not saying this is true but it would make sense setting this to false?

If set to false it will be sold in a box

The box is a shiptment…?

This code allows you to buy weapons in the box, but generates an error when buying

What is the error?



DarkRP.createShipment("M82", { -- Shipment name M82 is a sniper
model = "models/Items/BoxMRounds.mdl", -- This is an ammobox model
entity = "fas2_att_compm4", -- This is an FAS2 attachment
price = 62000, -- The price of the shipment is 62000
amount = 3, -- 3 entities in the shipment
seperate = true, -- Means you can buy it separately
pricesep = 500, -- One separate entity costs 500 when 3 is 62000?
noship = true, -- this makes sure it's not a shipment
allowed = {TEAM_GUN},
})


Y’know, something gives me the feeling you have no idea what you are doing and just changed the name and price and hoped it would work.

I use to have this problem all the time… This is how you fix it.

Single weapon



DarkRP.createShipment("M82", {
model = "models/Items/BoxMRounds.mdl",
entity = "fas2_att_compm4",
price = 62000,
amount = 3,
seperate = true,
pricesep = 500,
noship = true,
allowed = {TEAM_GUN},
})


Shipment


 
DarkRP.createShipment("M82", {
model = "models/Items/BoxMRounds.mdl",
entity = "fas2_att_compm4",
price = 62000,
amount = 3,
seperate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})