Make Shipments Appear in Shipments tab and Singles in Weapons Tab

How do I make shipments appear in the shipments tab and singles in the weapons tab?
Example code:


AddCustomShipment("Colt 1911 Shipment", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 1200, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Colt 1911 Single", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 150, 1, false, 150, false, {TEAM_GUN})

http://images.akamai.steamusercontent.com/ugc/180541009060213176/5637080A29600FE55AC2CFCF7DA73429BB7C2729/

Use this:

I use to use it and it works like a charm. Can set it to either be a single or a shipment

Example I made for you:

Shipment:




DarkRP.createShipment("Colt 1911 Shipment", {
    model = "models/weapons/s_dmgf_co1911.mdl",
    entity = "m9k_colt1911",
    amount = 10,
    price = 1200,
    separate = false,
    pricesep = 0,
    noship = false,
    allowed = {TEAM_GUN}
})



Single:




DarkRP.createShipment("Colt 1911 Shipment", {
    model = "models/weapons/s_dmgf_co1911.mdl",
    entity = "m9k_colt1911",
    amount = 10,
    price = 250,
    separate = true,
    pricesep = 250,
    noship = true,
    allowed = {TEAM_GUN}
})



So if I want a single weapon, seperate and noship must = true and if i want a shipment both seperate and noship must = false?

Yes that is correct. Give it a try see how it goes

It’s still the same as before :confused:

[editline]1st January 2017[/editline]


AddCustomShipment("Python Shipment", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 2500, 10, false, 69, false, {TEAM_GUN})
AddCustomShipment("Python Single", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 500, 1, false, 500, false, {TEAM_GUN})

How would I place Python Single into the weapons category? I tried including category = “Weapons”, but it says theres a Lua error.

You’re using the in-line AddCustomShipment function. Use the DarkRP.createShipment format posted above.


DarkRP.createShipment("Thompson Condender", {
    model = "models/weapons/w_g2_contender.mdl",
    entity = "m9k_contender",
    amount = 10,
    price = 5000,
    separate = true,
    pricesep = 500,
    noship = false,
    category = "Snipers",
    allowed = {TEAM_GUN}
})

I used the website that Jack1369 suggested and it works now that shipments/weapons are in their separate categories and their prices are seperate, but in the f4 menu, it says that they cost $500 (same as single) but when you purchase them it says you lost 5k (and you also lose 5k and give you the full shipment)


DarkRP.createShipment("1897 Winchester", {
    model = "models/weapons/w_winchester_1897_trench.mdl",
    entity = "m9k_1897winchester",
    amount = 10,
    price = 4000,
    separate = true,
    pricesep = 400,
    noship = false,
    category = "Shotguns",
    allowed = {TEAM_GUN}
})

This is what all my shipments look like, yet they won’t show up in the F4 menu. Any ideas why?