DarkRP F4 Weapon Spawning Problem

On the current DarkRP server that i’m working on, I have ran into a problem. When I become BMD, I try to spawn in either a a weapon, or shipment of weapons, and nothing seems to happen. The effect of the weapon spawning out of the shipment crate occurs, but the amount stays at 10. Spawning singles weapons just wont work. I’m thinking it has to do something with the CS:S content I added to the server. Anyways, any help is wanted.

shipments.lua


DarkRP.createShipment("Machete", {
    model = "models/weapons/w_machete.mdl",
    entity = "m9k_machete",
    price = 3000,
    amount = 10,
    seperate = true,
    pricesep = 300,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Machete Shipment", {
    model = "models/weapons/w_machete.mdl",
    entity = "m9k_machete",
    price = 3000,
    amount = 10,
    seperate = false,
    pricesep = 300,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Harpoon", {
    model = "models/weapons/w_harpooner.mdl",
    entity = "m9k_harpoon",
    price = 3000,
    amount = 10,
    seperate = true,
    pricesep = 300,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Harpoon Shipment", {
    model = "models/weapons/w_harpooner.mdl",
    entity = "m9k_harpoon",
    price = 3000,
    amount = 10,
    seperate = false,
    pricesep = 300,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Ak-47", {
    model = "models/weapons/w_ak47_m9k.mdl",
    entity = "m9k_ak47",
    price = 9800,
    amount = 10,
    seperate = true,
    pricesep = 980,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Ak-47 Shipment", {
    model = "models/weapons/w_ak47_m9k.mdl",
    entity = "m9k_ak47",
    price = 9800,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Usas", {
    model = "models/weapons/w_usas_12.mdl",
    entity = "m9k_usas",
    price = 1500,
    amount = 10,
    seperate = true,
    pricesep = 1500,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Usas Shipment", {
    model = "models/weapons/w_usas_12.mdl",
    entity = "m9k_usas",
    price = 14000,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Intervention", {
    model = "models/weapons/w_snip_int.mdl",
    entity = "m9k_intervention",
    price = 2000,
    amount = 10,
    seperate = true,
    pricesep = 2000,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Intervention Shipment", {
    model = "models/weapons/w_snip_int.mdl",
    entity = "m9k_intervention",
    price = 18500,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Vector", {
    model = "models/weapons/w_kriss_vector.mdl",
    entity = "m9k_vector",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 700,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Vector Shipment", {
    model = "models/weapons/w_kriss_vector.mdl",
    entity = "m9k_vector",
    price = 7000,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Uzi", {
    model = "models/weapons/w_uzi_imi.mdl",
    entity = "m9k_uzi",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 700,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Uzi Shipment", {
    model = "models/weapons/w_uzi_imi.mdl",
    entity = "m9k_uzi",
    price = 6500,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("M24 Shipment", {
    model = "models/weapons/w_snip_m24_6.mdl",
    entity = "m9k_m24",
    price = 16000,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("G3A3", {
    model = "models/weapons/w_hk_g3.mdl",
    entity = "m9k_g3a3",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 700,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("G3A3 Shipment", {
    model = "models/weapons/w_hk_g3.mdl",
    entity = "m9k_g3a3",
    price = 7000,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("HK16", {
    model = "models/weapons/w_hk_416.mdl",
    entity = "m9k_m416",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 700,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("HK16 Shipment", {
    model = "models/weapons/w_hk_416.mdl",
    entity = "m9k_m416",
    price = 7000,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("MP9", {
    model = "models/weapons/w_brugger_thomet_mp9.mdl",
    entity = "m9k_mp9",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 900,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("MP9 Shipment", {
    model = "models/weapons/w_brugger_thomet_mp9.mdl",
    entity = "m9k_mp9",
    price = 8500,
    amount = 10,
    seperate = false,
    pricesep = 700,
    noship = false,
    allowed = {TEAM_BMD}
})


DarkRP.createShipment("Colt 1911", {
    model = "models/weapons/s_dmgf_co1911.mdl",
    entity = "m9k_colt1911",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 700,
    noship = true,
    allowed = {TEAM_DEAL}
})

DarkRP.createShipment("G18", {
    model = "models/weapons/w_dmg_glock.mdl",
    entity = "m9k_glock",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 450,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Lockpick", {
    model = "models/weapons/w_crowbar.mdl",
    entity = "lockpick",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 850,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Keypad Cracker", {
    model = "models/weapons/w_c4_planted.mdl",
    entity = "keypad_cracker",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 950,
    noship = true,
    allowed = {TEAM_BMD}
})

DarkRP.createShipment("Colt Python", {
    model = "models/weapons/w_colt_python.mdl",
    entity = "m9k_coltpython",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 300,
    noship = true,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Remington 870", {
    model = "models/weapons/w_remington_870_tact.mdl",
    entity = "m9k_remington870",
    price = 7000,
    amount = 10,
    seperate = true,
    pricesep = 450,
    noship = true,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Remington 870 Shipment", {
    model = "models/weapons/w_remington_870_tact.mdl",
    entity = "m9k_remington870",
    price = 5000,
    amount = 10,
    seperate = false,
    pricesep = 500,
    noship = false,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Winchester 1897", {
    model = "models/weapons/w_winchester_1897_trench.mdl",
    entity = "m9k_1897winchester",
    price = 5000,
    amount = 10,
    seperate = true,
    pricesep = 500,
    noship = true,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Winchester 1897 Shipment", {
    model = "models/weapons/w_winchester_1897_trench.mdl",
    entity = "m9k_1897winchester",
    price = 5000,
    amount = 10,
    seperate = false,
    pricesep = 500,
    noship = false,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Benelli M3", {
    model = "models/weapons/w_benelli_m3.mdl",
    entity = "m9k_m3",
    price = 5000,
    amount = 10,
    seperate = true,
    pricesep = 500,
    noship = true,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Benelli M3 Shipment", {
    model = "models/weapons/w_benelli_m3.mdl",
    entity = "m9k_m3",
    price = 5000,
    amount = 10,
    seperate = false,
    pricesep = 500,
    noship = false,
    allowed = {TEAM_DEAL}
})	

DarkRP.createShipment("Deagle", {
    model = "models/weapons/w_tcom_deagle.mdl",
    entity = "m9k_deagle",
    price = 5000,
    amount = 10,
    seperate = true,
    pricesep = 300,
    noship = true,
    allowed = {TEAM_DEAL}
})	

Also, the ammo used for the default DarkRP, will spawn invisible and come with this error:


ERROR: Trying to derive entity spawned_ammo from non existant entity spawned_weapon!

[ERROR] gamemodes/darkrp/entities/entities/spawned_ammo/shared.lua:8: attempt to index field 'BaseClass' (a nil value)
  1. unknown - gamemodes/darkrp/entities/entities/spawned_ammo/shared.lua:8