# Adding Content

<mark style="color:blue;">Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c) (3) of the Digital Millennium Copyright Act</mark>

### Categories

For add new categories first find the file "categories.json" in folder *<mark style="color:orange;">'web/assets/config'</mark>*

<figure><img src="/files/PNQM8rG1UnFSHJaVanvI" alt=""><figcaption><p>categories.json</p></figcaption></figure>

#### Editing

You can edit the name of categories and also the image of each category.

```json
{
    "categories": {
        "1":{"id":1,"name": "Suppressors","image":"../web/assets/categoriesimg/suppressor.png"},
        "2":{"id":2,"name": "Magazines","image":"../web/assets/categoriesimg/mag.png"},
        "3":{"id":3,"name": "Scopes","image":"../web/assets/categoriesimg/scopes.png"},
        "4":{"id":4,"name": "Skins","image":"../web/assets/categoriesimg/skin.png"},
        "5":{"id":5,"name": "Stocks","image":"../web/assets/categoriesimg/stocks.png"},
        "6":{"id":6,"name": "Barrel","image":"../web/assets/categoriesimg/barrel.png"},
        "7":{"id":7,"name": "Flashlight","image":"../web/assets/categoriesimg/flash.png"},
        "8":{"id":8,"name": "Grip","image":"../web/assets/categoriesimg/grip.png"}
    }
}
```

**Adding**

For add a new category you should copy the same structure for example...

```json
"9":{"id":9,"name": "New","image":"someurl.com"
```

### **Weapons**

For add new categories first find the file "weapons.json" in folder *<mark style="color:orange;">'web/assets/config'</mark>*

<figure><img src="/files/PNQM8rG1UnFSHJaVanvI" alt=""><figcaption><p>weapons.json</p></figcaption></figure>

#### Editing

You can edit the name of the weapon and the components, also you can change the image of each weapon and price of components.

```json
"WEAPON_ASSAULTRIFLE":{
        "name": "ASSAULTRIFLE",
        "id": "WEAPON_ASSAULTRIFLE",
        "image": "https://i.imgur.com/BKhD17Q.png",
        "components": {
            "COMPONENT_ASSAULTRIFLE_CLIP_01":{"category" : 2,"name": "MAG1","price":200},
            "COMPONENT_ASSAULTRIFLE_CLIP_02":{"category" : 2,"name": "MAG2","price":220},
            "COMPONENT_ASSAULTRIFLE_CLIP_03":{"category" : 2,"name": "MAG3","price":230},
            "COMPONENT_AT_AR_FLSH":{"category" : 7,"name": "FLASHLIGHT","price":700},
            "COMPONENT_AT_AR_SUPP_02":{"category" : 1,"name": "SUPPRESSOR","price":100}
        }
    },
```

**Adding**

For add new weapons just copy the same estructure, <mark style="color:red;">**the key and id of the weapon should be the same of the weapon spawn name.**</mark>

```json
"WEAPON_AKORUS":{
        "name": "AKORUS",
        "id": "WEAPON_AKORUS",
        "image": "https://i.imgur.com/BKhD17Q.png",
        "components": {
            "COMPONENT_AKORUS_CLIP_01":{"category" : 2,"name": "MAG1","price":200},
            "COMPONENT_AKORUS_CLIP_02":{"category" : 2,"name": "MAG2","price":220},
            "COMPONENT_AKORUS_CLIP_03":{"category" : 2,"name": "MAG3","price":230},
            "COMPONENT_AT_AKORUS_SUPP_02":{"category" : 1,"name": "SUPPRESSOR","price":100}
        }
    },
```


---

# 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://leoshop.gitbook.io/leoshop/leofcomp/steps/adding-content.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.
