Remove, or set to "0" - ammo amount

robson

New member
Hello, could anyone help me, please?

I'm trying to remove only the AssaultRifle from my inventory, however, when I call "inventory.RemoveItem (itemType, slotID, false);" and always removes the bullet TOGETHER with the gun and I do not want that to happen. Does anyone know how to ONLY remove the weapon? If you can not do this, would you be able to set ammunition value to 0 by code? I tried it in many ways, but I could not !!
 

Attachments

  • unknown.png
    unknown.png
    20.2 KB · Views: 15
  • Parte_1.png
    Parte_1.png
    34.6 KB · Views: 14
  • Parte_2.png
    Parte_2.png
    32.4 KB · Views: 13
Instead of calling RemoveItem you can call RemoveItemType and that'll allow you to remove the bullets.
 
Top