# Creating a Gun : Loaded by default

**URL:** https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807
**Category:** The Toolbox
**Created:** [February 15, 2019, 8:43pm UTC](https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807 "2019-02-15T20:43:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mantis](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mantis](https://discourse.cataclysmdda.org/u/Mantis)
#### Post date: [February 15, 2019, 8:43pm UTC](https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807/1 "2019-02-15T20:43:38Z")

</div>

In my little mod, I started to create a series of guns.  
I designed one of these guns as a throwaway gun, that’s not designed to be reloaded or unloaded at all. I can use the gun just fine, it shoots, it spawns.

The issue is that the guns spawned are empty. I would like them to always spawn loaded with a particular kind of ammo.

Is this possible ?

Here is my current JSON for the gun : [https://pastebin.com/75rG8WgA](https://pastebin.com/75rG8WgA)

---

<div class="post-metadata">

### Author: ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)
#### Post date: [February 15, 2019, 8:53pm UTC](https://discourse.cataclysmdda.org/t/creating-a-gun-loaded-by-default/18807/2 "2019-02-15T20:53:08Z")

</div>

In the itemgroup, add the “ammo-item” and “charges” entry.

```auto
{ "item": "m1911", "ammo-item": "45_acp", "charges": 7, "container-item": "holster" }
```

In this example, the m1911 will spawn loaded with 7 rounds of 45 ACP. It’s also in a holster, but that’s not relevant.

I believe that’s what you’re looking for. You can see other examples of this here and there. That specific example is from the professions.json.
