Items#
0r-radio expects two items: the radio itself and (if enabled) the jammer. Both names come from config.lua:
item = 'advancedradio',
jammer = {
item = 'jammer',
...
}
You can rename them to whatever fits your server — just make sure the inventory entries below match.
Adding the items in ox_inventory/data/items.lua:#
['advancedradio'] = {
label = 'Radio',
weight = 200,
stack = false,
close = true,
description = 'A handheld radio.',
client = {
event = '0r-radio:client:useRadio'
}
},
['jammer'] = {
label = 'Signal Jammer',
weight = 1500,
stack = false,
close = true,
description = 'Blocks nearby radio signals.'
},
The client.export line lets ox call the radio directly when the item is used. The jammer doesn't need an export — 0r-radio already registers it as a usable item server-side.
In qb-core/shared/items.lua:
advancedradio = {
name = 'advancedradio',
label = 'Radio',
weight = 200,
type = 'item',
image = 'radio.png',
unique = false,
useable = true,
shouldClose = true,
description = 'A handheld radio.'
},
jammer = {
name = 'jammer',
label = 'Signal Jammer',
weight = 1500,
type = 'item',
image = 'jammer.png',
unique = false,
useable = true,
shouldClose = true,
description = 'Blocks nearby radio signals.'
},
ESX SQL Items#
INSERT INTO items (name, label, weight) VALUES
('advancedradio', 'Radio', 1),
('jammer', 'Signal Jammer', 5);
0r-radio registers both as usable items automatically.
Item images#
If you want icons in your inventory, drop a advancedradio.png and jammer.png into your inventory's image folder (for example ox_inventory/web/images/). The script doesn't ship images — pick whatever suits your server's style.