1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Need help with ammo on my server

Discussion in 'DarkRP Modding Questions & Help' started by Kralley, Oct 26, 2015.

  1. Kralley

    Kralley New Member

    The default ammo is working if i enable it in disabled_defaults.lua, but i just disabled it and M9K ammo doesn't work. I've even tried to just put the random ammo in:

    DarkRP.createAmmoType("buckshot", {
    name = "Shotgun ammo",
    model = "models/Items/BoxBuckshot.mdl",
    price = 50,
    amountGiven = 8

    I get no errors or anything, it just doesn't show up at all in my F4 menu under ammo.
  2. Jaydawg

    Jaydawg New Member

    Just as a question is the ammo in the ammo.lua file?
    Here is my ammo type for the m9k shotgun ammo.

    DarkRP.createAmmoType("buckshot", {
    name = "Shotgun Ammo",
    model = "models/Items/BoxBuckshot.mdl",
    price = 1250,
    amountGiven = 30
  3. Kralley

    Kralley New Member

    Yes it is in the ammo.lua file, which wonders me as well. It's the same codes we are using, just different prices.
  4. Kralley

    Kralley New Member

    Wooops, just a tip! Never edit the core files
  5. Tomelyr

    Tomelyr Active Member

    (FPtje) Atheos likes this.

Share This Page