# Items API

{% hint style="info" %}
**Note:** Ensure that AI who use this API have a on [Items Component](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/items-component) it. Most of these are used through Animation Events or internally (which are called through the Emerald Components directly and not through the static EmeraldAPI script). The information here is based off an AI's [Items Component](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/items-component).&#x20;
{% endhint %}

## Enable Weapon

Enables an item from your AI's Item list using the Item ID.

```csharp
EmeraldAPI.Items.EnableWeapon(EmeraldSystem EmeraldComponent, string WeaponTypeToEnable)
```

## Disable Weapon

Disables an item from your AI's Item list using the Item ID.

```csharp
EmeraldAPI.Items.DisableWeapon(EmeraldSystem EmeraldComponent, string WeaponTypeToDisable)
```

## Disable All Items

Disables all items from your AI's Item list.

```csharp
EmeraldAPI.Items.DisableAllItems(EmeraldSystem EmeraldComponent, string WeaponTypeToDisable)
```

## Reset Settings

Reset any equipped items to their defaults.

```csharp
EmeraldAPI.Items.ResetSettings(EmeraldSystem EmeraldComponent, string WeaponTypeToDisable)
```


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/api/available-api/items-api.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.
