Create the Shield Item for ESX
This guide explains how to create and configure the Shield item for ESX.
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 item in your ESX database
ESX items are usually stored in the items table.
Run this SQL query:
INSERT INTO items (name, label, weight) VALUES
('ballistic_shield', 'Ballistic Shield', 10);Notes
namemust be exactly:scbalabelis the display nameweightdepends on your ESX version / weight systemIf your ESX doesn’t use weight in the DB, remove the
weightfield from the query.
3. Add the Shield image
Most ESX inventories load images from:
You already have the icon here:
Copy it to:
The file name must match the item name.
Last updated