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.

Ammo Purchase...

Discussion in 'Modder General Chat' started by GMOD Gaming Official, May 30, 2019.

  1. Is there a way to make this go stright into the guns I have instead of dropping on the floor.

  2. Emperor Penguin

    Emperor Penguin New Member

    You can create custom command to buy ammo for current weapon, where you will do

    LocalPlayer():GiveAmmo(amount, LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()), where amount variable is needed amount of ammo
  3. I wanted it so the user goes to the F4 menu -> Ammo and double clicks on the ammo they want and it is given to the player without creating the ammo box.

    is this possible
  4. Emperor Penguin

    Emperor Penguin New Member

    It is possible, but for it you must edit your f4 menu module(DoDoubleClick func can help you).
  5. I edited the entitie spawned_ammo and sorted it that way :)
  6. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

Share This Page