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

# Installation

***

### **1. Add the resource**

Put `ld-blazeshieldV2` in your resources folder and add it to `server.cfg` **after** your framework and inventory:

```
ensure ox_lib          # optional, for notifications
ensure qbx_core        # or qb-core / es_extended
ensure ox_inventory    # if you use it
ensure ld-blazeshieldV2
```

The shield models, textures and the light's glow prop are streamed from the `stream` folder.

***

### **2. Framework and inventory**

Both are detected automatically. You only need to change them if detection picks the wrong one.

```lua
Config.Framework = 'auto' -- 'auto', 'qbox', 'qbcore', 'esx' or 'standalone'
Config.Inventory = 'auto' -- 'auto', 'ox', 'qb', 'esx' or 'none'
```

| Your server             | What is used          |
| ----------------------- | --------------------- |
| Qbox                    | ox\_inventory items   |
| QBCore (qb-inventory)   | QBCore items          |
| QBCore + ox\_inventory  | ox\_inventory items   |
| ESX + ox\_inventory     | ox\_inventory items   |
| ESX (default inventory) | ESX items             |
| Standalone              | The `/shield` command |

***

### **3. Add the items**

Skip this on a standalone server.

* **ox\_inventory** (Qbox, or QBCore / ESX with ox): [Create the Shield Item for ox\_inventory](https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-ox_inventory.md)
* **qb-inventory** (QBCore): [Create the Shield Item for QBCore](https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-qbcore.md)
* **ESX default inventory**: [Create the Shield Item for ESX](https://docs.blazesmods.com/scripts/ld-blazeshield/create-the-shield-item-for-esx.md)

***

### **4. Check the weapons**

The shield is held with a one-handed weapon from `Config.Weapon`:

```lua
Config.Weapon = { "WEAPON_PISTOL", "WEAPON_COMBATPISTOL", "WEAPON_CARBINERIFLE", "WEAPON_CARBINERIFLE_MK2" }
```

* **ox\_inventory:** the player must carry one of these. It is equipped for them.
* **Without ox\_inventory:** if the player owns none, the first one is given and taken back when the shield comes down.

***

### **5. Test it**

* **With items:** give yourself `shield_sasp` and use it.
* **Standalone:** type `/shield 1`.

Press the middle mouse button to turn the light on.

{% hint style="info" %}
To check where the beam points, set `Config.Light.debug = true`. You'll see a red line along the beam and a green dot at its origin. Set it back to `false` when you're done.
{% endhint %}


---

# 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/installation.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.
