> For the complete documentation index, see [llms.txt](https://luffyyy.gitbook.io/beardlib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luffyyy.gitbook.io/beardlib/modules/globalvaluemodule.md).

# Global Value (Tagging weapons/etc)

Updated for version 3.38.

## Module Definition

The module is inherited from [ModuleBase](https://luffyyy.gitbook.io/beardlib/modules/modulebase). So base parameters can be found there.

Let's you make a global value. A global value is a great way to label your custom weapons, melee etc. You'll see a lot of times weapons saying "This is an X weapon!" This is basically it. Almost all custom item modules have a parameter named `global_value` which you set to the ID of this module that you create.

### Module name

The name of the module you use as the meta of the module definition is 'GlobalValue' or 'GlobalValueModule' if `_force_search` is set to true in the module definition.

### XML Structure

```markup
<GlobalValue id overwrite name_id desc_id color is_category/>
```

#### `<GlobalValue ...>`

| Parameter    | Type    | Description                                                             |
| ------------ | ------- | ----------------------------------------------------------------------- |
| id           | String  | The ID of the global value                                              |
| color        | Color   | The color of the global value                                           |
| overwrite    | Boolean | Skips the ID check if the global value already exists and overwrites it |
| name\_id     | String  | String ID of the title \[Default: bm\_global\_value\_`id`]              |
| desc\_id     | String  | String ID of the description \[Default: menu\_l\_global\_value\_`id`]   |
| is\_category | Boolean | Makes the global value a category                                       |

And any value that is used in the LootDropTweakData.global\_values

### Example

This example is what you would put inside your main node within your [mod config](https://github.com/GreatBigBushyBeard/PAYDAY-2-BeardLib/wiki/Module-Config)

```markup
<GlobalValue id="beard" color="Color('ffffff')"/>
```

This will add a DLC named beard. You will need to localize name\_id and desc\_id ([LocalizationModule](https://luffyyy.gitbook.io/beardlib/modules/localizationmodule))


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://luffyyy.gitbook.io/beardlib/modules/globalvaluemodule.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
