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

Items

Default inventory items and image notes for 0r-radio

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:

ESX SQL Items

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.

Last updated