> 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-qbcore.md). Agents can also search and read this documentation through its [MCP server](https://docs.blazesmods.com/~gitbook/mcp).

# Create the Shield Item for QBCore

For QBCore with **qb-inventory**. If you run ox\_inventory on QBCore, use [Create the Shield Item for ox\_inventory](https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-ox_inventory.md) instead.

***

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

Open `qb-core/shared/items.lua` and add these inside `QBShared.Items`. They are also in `install/qb_items.lua`.

```lua
shield_sasp          = { name = 'shield_sasp',          label = 'SASP Ballistic Shield',            weight = 8000, type = 'item', image = 'shield_sasp.png',          unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with mounted light.' },
shield_sasp_cover    = { name = 'shield_sasp_cover',    label = 'SASP Ballistic Shield (Cover)',    weight = 8500, type = 'item', image = 'shield_sasp_cover.png',    unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with cover and mounted light.' },
shield_police        = { name = 'shield_police',        label = 'Police Ballistic Shield',          weight = 8000, type = 'item', image = 'shield_police.png',        unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with mounted light.' },
shield_police_cover  = { name = 'shield_police_cover',  label = 'Police Ballistic Shield (Cover)',  weight = 8500, type = 'item', image = 'shield_police_cover.png',  unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with cover and mounted light.' },
shield_sheriff       = { name = 'shield_sheriff',       label = 'Sheriff Ballistic Shield',         weight = 8000, type = 'item', image = 'shield_sheriff.png',       unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with mounted light.' },
shield_sheriff_cover = { name = 'shield_sheriff_cover', label = 'Sheriff Ballistic Shield (Cover)', weight = 8500, type = 'item', image = 'shield_sheriff_cover.png', unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with cover and mounted light.' },
shield_fbi           = { name = 'shield_fbi',           label = 'FBI Ballistic Shield',             weight = 8000, type = 'item', image = 'shield_fbi.png',           unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with mounted light.' },
shield_fbi_cover     = { name = 'shield_fbi_cover',     label = 'FBI Ballistic Shield (Cover)',     weight = 8500, type = 'item', image = 'shield_fbi_cover.png',     unique = true, useable = true, shouldClose = true, description = 'Ballistic shield with cover and mounted light.' },
```

The items are registered as usable by the script. There is nothing else to add.

{% hint style="info" %}
qb-inventory forks that use QBCore's item list and usable items (for example ps-inventory or lj-inventory) work the same way. If detection picks the wrong inventory, set `Config.Inventory = 'qb'`.
{% endhint %}

***

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

Put an image for each item in `qb-inventory/html/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.
* Hold one of the weapons in `Config.Weapon` before raising the shield. If you aren't holding or carrying one, the first one in the list is given while the shield is up and taken back after.
* The shield comes down when the item leaves the inventory (dropped, given away, stashed).
* Notifications use QBCore's notify, or ox\_lib when it's running.


---

# 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-qbcore.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.
