> For the complete documentation index, see [llms.txt](https://docs.blazesmods.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-ox_inventory.md). Agents can also search and read this documentation through its [MCP server](https://docs.blazesmods.com/~gitbook/mcp).

# Create the Shield Item for ox\_inventory

For Qbox, or QBCore / ESX with ox\_inventory. The same items are in `install/ox_inventory_items.lua`.

***

### **1. Add the items**

Open `ox_inventory/data/items.lua` and add:

```lua
['shield_sasp'] = {
    label = 'SASP Ballistic Shield',
    weight = 8000,
    stack = false,
    close = true,
    description = 'Ballistic shield with mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_sasp_cover'] = {
    label = 'SASP Ballistic Shield (Cover)',
    weight = 8500,
    stack = false,
    close = true,
    description = 'Ballistic shield with cover and mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_police'] = {
    label = 'Police Ballistic Shield',
    weight = 8000,
    stack = false,
    close = true,
    description = 'Ballistic shield with mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_police_cover'] = {
    label = 'Police Ballistic Shield (Cover)',
    weight = 8500,
    stack = false,
    close = true,
    description = 'Ballistic shield with cover and mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_sheriff'] = {
    label = 'Sheriff Ballistic Shield',
    weight = 8000,
    stack = false,
    close = true,
    description = 'Ballistic shield with mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_sheriff_cover'] = {
    label = 'Sheriff Ballistic Shield (Cover)',
    weight = 8500,
    stack = false,
    close = true,
    description = 'Ballistic shield with cover and mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_fbi'] = {
    label = 'FBI Ballistic Shield',
    weight = 8000,
    stack = false,
    close = true,
    description = 'Ballistic shield with mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},

['shield_fbi_cover'] = {
    label = 'FBI Ballistic Shield (Cover)',
    weight = 8500,
    stack = false,
    close = true,
    description = 'Ballistic shield with cover and mounted light.',
    client = { export = 'ld-blazeshieldV2.useShieldItem' },
},
```

{% hint style="warning" %}
If you rename the resource folder, change `ld-blazeshieldV2` in every `export` line to the new name.
{% endhint %}

***

### **2. Add the images**

Put an image for each item in `ox_inventory/web/images/`, named after the item, for example `shield_sasp.png`.

***

### **3. How it works**

* Using a shield item raises that shield. Using it again lowers it.
* The player needs one of the weapons in `Config.Weapon` in their inventory. It is equipped automatically.
* The shield comes down when the item leaves the inventory, or when the player holsters or switches weapons.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-ox_inventory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
