# Weapon settings

#### Info (metadata) entry for weapon attachments

You can extract the weapon as a specialised weapon with the attachment method described here.

```lua
itemname = weapon_pistol
amount = 1 
info.attachment = {
 {['component'] = "flashlight"},
 {['component'] = "suppressor"}
}
exports['bp_inventory']:AddItem(source, item, amount, info, slot)

```

* As you can see above, you can add automatic attacment to the weapon.
* <mark style="background-color:blue;">**You can find Components information in config.lua > Config.Weapons.**</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0resmon.org/0resmon/bp-resources/bp-inventory/weapon-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
