> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_shops/how-to-add-weapon.md).

# How to add weapon

## How to add a weapon? (for ESX)

{% hint style="danger" %}
It's important to have type="WEAPON" and also ammo count and don't forget about the label.
{% endhint %}

```lua
 {
     name = 'WEAPON_PISTOL',
     label = 'Pistol',  --IMPORTANT
     price = 15.0,
     amount = 1,
     ammo = 50, --IMPORTANT
     type = 'WEAPON',  --IMPORTANT
     weight = 2.0, --If using weight system
 }, 
```

## How to add a weapon? (For QBCore)

{% hint style="danger" %}
QBCore has weapons as an item so there is no need to add "type = 'weapon'" like displayed above.
{% endhint %}

```lua
 {
     name = 'WEAPON_PISTOL',
     label = 'Pistol',
     price = 15.0,
     amount = 1,
     weight = 2.0, 
 }, 
```
