I am trying to mod a gun into the game (pls help)

I’m new to modding, how do I make the gun accept both batteries and nails?
I am trying to add two different magazines, but the game doesn’t let me.
Basically, I want every shot to consume battery charge.

I manage to make it work with ups but i want to use ordinary batteries and the batteries need to be reloaded in the gun