For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create the Shield Item for QBCore

This guide explains how to create and configure the Shield item for QBCore.


1. Get the name of the shield item

In r_shields, open:

  • r_shields/config.lua

Retrieve each name one by one from the shields listed in the script's configuration, by default, there will be three models:

  • ballistic_shield

  • prop_ballistic_shield

  • wheel_shield

In our example, we'll use the first one (ballistic_shield) but you'll need to repeat this process for all the shields on your list.


2. Create the Shield item in QBCore inventory

If you use qb-inventory

Open:

qb-inventory/shared/items.lua

Add:

Field meaning (quick)

  • name: internal item id

  • label: display name

  • weight: item weight

  • image: icon file name

  • unique = true: prevents stacking

  • useable = true: allows using the item

If your inventory structure is slightly different, keep the same idea.


3. Add the Shield image

Most QBCore inventories load images from:

You already have the icon here:

Copy it to:

The image filename must match with your item name.

Last updated