SpicyTasty DOCS
WEBSTOREDISCORDYOUTUBE
  • 🚨READ ME
    • 🌶️Welcome to SpicyTasty
  • 📚SCRIPTS
    • RADIO
      • Installation
        • STEP 1
        • STEP 2
        • STEP 3
        • STEP 4
          • ORIGEN inventory
          • AK47 inventory
          • PS inventory
          • CORE inventory
          • OX inventory
          • LJ inventory
          • QB inventory
          • TGIANN inventory
          • CODEM inventory
          • QS inventory
        • STEP 5
        • STEP 6 (OPTIONAL)
      • Common Errors
      • Snippets
        • Exports
        • pma-voice
        • Add to Store/Shop
      • Config
    • NOTIFY
      • Installation
        • STEP 1
        • STEP 2
        • STEP 3
        • STEP 4
          • ESX
          • QBCore
      • Exports
      • Job Banners
  • BLINDBOX
    • Installation
  • 🫒PROPS
    • BUBUS
      • Installation
        • STEP 1
        • STEP 2
        • STEP 3
        • STEP 4
        • Step 5
          • stUsableProps
          • stBlindBox
    • BOTS
      • Installation
        • STEP 1
        • STEP 2
        • STEP 3
        • STEP 4
        • Step 5
          • stUsableProps
          • stBlindBox
Powered by GitBook
On this page
  • STEP 1
  • STEP 2 ADD THE ITEMS
  • STEP 3
  • STEP 4

Was this helpful?

  1. SCRIPTS
  2. RADIO
  3. Installation
  4. STEP 4

CORE inventory

STEP 1

GO TO core_inventory/config.lua

and add this on ItemCategories

    ["uniqueItem"] = {
        color = "#62a859",
        takeSound = 'take_fabric',
        putSound = 'put_fabric',
    },

    ["moduleRadio"] = {
        color = "#62a859",
        takeSound = 'take_fabric',
        putSound = 'put_fabric',
        stack = 2
    },

STEP 2 ADD THE ITEMS

Select your framework and add the items.

INSERT INTO items (name, label, weight, category) VALUES 
('radio', 'Radio', 10, 'uniqueItem'), 
('radio_red', 'Color frame red', 10, 'moduleRadio'), 
('radio_blue', 'Color frame blue', 10, 'moduleRadio'), 
('radio_purple', 'Color frame purple', 10, 'moduleRadio'), 
('radio_pink', 'Color frame pink', 10, 'moduleRadio'), 
('radio_lightblue', 'Color frame lightblue', 10, 'moduleRadio'), 
('radio_orange', 'Color frame orange', 10, 'moduleRadio'), 
('radio_yellow', 'Color frame yellow', 10, 'moduleRadio'), 
('radio_green', 'Color frame green', 10, 'moduleRadio'), 
('radio_white', 'Color frame white', 10, 'moduleRadio'), 
('radio_grey', 'Color frame grey', 10, 'moduleRadio'),
('bat_low', 'Cheap battery', 10, 'moduleRadio'),
('bat_medium', 'Common battery', 10, 'moduleRadio'),
('bat_high', 'Premium battery', 10, 'moduleRadio'),
('chip_5g', '5G Chip', 10, 'moduleRadio'),
('chip_ghost', 'Ghost Chip', 10, 'moduleRadio'),
('chip_antihack', 'Antihack Chip', 10, 'moduleRadio'),
('mic_walkie', 'Talkie Shoulder Microphone', 10, 'moduleRadio'),

('hack_chip', 'Hack chip', 10, 'moduleRadio'),

('radio_server', 'Server', 10, 'uniqueItem'),
('radio_monitor', 'Monitor of hospital', 10, 'uniqueItem'),
('radio_server_bat', 'Car battery', 10, 'uniqueItem'),
('radio_cables', 'Cables for battery', 10, 'uniqueItem'),
('radio_jammer', 'Radio Jammer', 10, 'uniqueItem'),
('radio_powerbank', 'Portable battery', 10, 'uniqueItem'),
('radio_tool', 'Radio tools', 10, 'uniqueItem'),
('radio_broken', 'Broken radio', 10, 'uniqueItem'),
('chip_waterproof', 'Waterproof radio', 10, 'uniqueItem'),
qb-core/shared/items.lua
    ["radio"] = { ["name"] = "radio",  ["label"] = "Radio",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A communication device"},
    ["radio_red"] = {["name"] = "radio_red", ["label"] = "Color frame red", ["weight"] = 10, ["type"] = "item", ["image"] = "radio_red.png", ['category'] = 'moduleRadio', ["unique"] = true, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "A red frame for the radio"},
    ["radio_blue"] = { ["name"] = "radio_blue",  ["label"] = "Color frame blue",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_blue.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A blue frame for the radio" },
    ["radio_purple"] = { ["name"] = "radio_purple",  ["label"] = "Color frame purple",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_purple.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A purple frame for the radio"},
    ["radio_pink"] = { ["name"] = "radio_pink",  ["label"] = "Color frame pink",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_pink.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A pink frame for the radio" },
    ["radio_lightblue"] = { ["name"] = "radio_lightblue",  ["label"] = "Color frame lightblue",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_lightblue.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A light blue frame for the radio" },
    ["radio_orange"] = { ["name"] = "radio_orange",  ["label"] = "Color frame orange",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_orange.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "An orange frame for the radio" },
    ["radio_yellow"] = { ["name"] = "radio_yellow",  ["label"] = "Color frame yellow",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_yellow.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A yellow frame for the radio" },
    ["radio_green"] = { ["name"] = "radio_green",  ["label"] = "Color frame green",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_green.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A green frame for the radio" },
    ["radio_white"] = { ["name"] = "radio_white",  ["label"] = "Color frame white",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_white.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A white frame for the radio" },
    ["radio_grey"] = { ["name"] = "radio_grey",  ["label"] = "Color frame grey",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_grey.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A grey frame for the radio" },
    ["bat_low"] = { ["name"] = "bat_low",  ["label"] = "Cheap battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "bat_low.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A low capacity battery" },
    ["bat_medium"] = { ["name"] = "bat_medium",  ["label"] = "Common battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "bat_medium.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A common capacity battery" },
    ["bat_high"] = { ["name"] = "bat_high",  ["label"] = "Premium battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "bat_high.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A high capacity battery" },
    ["chip_5g"] = { ["name"] = "chip_5g",  ["label"] = "5G Chip",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "chip_5g.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A chip that enables 5G connection" },
    ["chip_ghost"] = { ["name"] = "chip_ghost",  ["label"] = "Ghost Chip",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "chip_ghost.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A chip that hides connections" },
    ["chip_antihack"] = { ["name"] = "chip_antihack",  ["label"] = "Antihack Chip",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "chip_antihack.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A chip to prevent hacking" },
    ["mic_walkie"] = { ["name"] = "mic_walkie",  ["label"] = "Talkie Shoulder Microphone",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "mic_walkie.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A shoulder microphone for walkie talkies" },
    ["hack_chip"] = { ["name"] = "hack_chip",  ["label"] = "Hack chip",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "hack_chip.png",  ['category'] = 'moduleRadio',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A chip used for hacking" },
    ["radio_server"] = { ["name"] = "radio_server",  ["label"] = "Server",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_server.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A server device" },
    ["radio_monitor"] = { ["name"] = "radio_monitor",  ["label"] = "Monitor of hospital",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_monitor.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A monitor used in hospitals" },
    ["radio_server_bat"] = { ["name"] = "radio_server_bat",  ["label"] = "Car battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_server_bat.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A battery for servers" },
    ["radio_cables"] = { ["name"] = "radio_cables",  ["label"] = "Cables for battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_cables.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = false,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "Cables used for connecting batteries" },
    ["radio_jammer"] = { ["name"] = "radio_jammer",  ["label"] = "Radio Jammer",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_jammer.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A device that jams radio signals" },
    ["radio_powerbank"] = { ["name"] = "radio_powerbank",  ["label"] = "Portable battery",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_powerbank.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A portable battery for general use" },
    ["radio_tool"] = { ["name"] = "radio_tool",  ["label"] = "Radio tools",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_tool.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "Tools used for repairing radios" },
    ["radio_broken"] = { ["name"] = "radio_broken",  ["label"] = "Broken radio",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "radio_broken.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A radio that no longer works" },
    ["chip_waterproof"] = { ["name"] = "chip_waterproof",  ["label"] = "Waterproof radio",  ["weight"] = 10,  ["type"] = "item",  ["image"] = "chip_waterproof.png",  ['category'] = 'uniqueItem',  ["unique"] = true,  ["useable"] = true,  ["shouldClose"] = false,  ["combinable"] = nil,  ["description"] = "A radio chip with waterproof capabilities" },
    radio = { name = 'radio', label = 'Radio', weight = 10, type = 'item', image = 'radio.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A communication device' },
    radio_red = { name = 'radio_red', label = 'Color frame red', weight = 10, type = 'item', image = 'radio_red.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A red frame for the radio' },
    radio_blue = { name = 'radio_blue', label = 'Color frame blue', weight = 10, type = 'item', image = 'radio_blue.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A blue frame for the radio' },
    radio_purple = { name = 'radio_purple', label = 'Color frame purple', weight = 10, type = 'item', image = 'radio_purple.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A purple frame for the radio' },
    radio_pink = { name = 'radio_pink', label = 'Color frame pink', weight = 10, type = 'item', image = 'radio_pink.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A pink frame for the radio' },
    radio_lightblue = { name = 'radio_lightblue', label = 'Color frame lightblue', weight = 10, type = 'item', image = 'radio_lightblue.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A light blue frame for the radio' },
    radio_orange = { name = 'radio_orange', label = 'Color frame orange', weight = 10, type = 'item', image = 'radio_orange.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'An orange frame for the radio' },
    radio_yellow = { name = 'radio_yellow', label = 'Color frame yellow', weight = 10, type = 'item', image = 'radio_yellow.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A yellow frame for the radio' },
    radio_green = { name = 'radio_green', label = 'Color frame green', weight = 10, type = 'item', image = 'radio_green.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A green frame for the radio' },
    radio_white = { name = 'radio_white', label = 'Color frame white', weight = 10, type = 'item', image = 'radio_white.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A white frame for the radio' },
    radio_grey = { name = 'radio_grey', label = 'Color frame grey', weight = 10, type = 'item', image = 'radio_grey.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A grey frame for the radio' },
    bat_low = { name = 'bat_low', label = 'Cheap battery', weight = 10, type = 'item', image = 'bat_low.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A low capacity battery' },
    bat_medium = { name = 'bat_medium', label = 'Common battery', weight = 10, type = 'item', image = 'bat_medium.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A common capacity battery' },
    bat_high = { name = 'bat_high', label = 'Premium battery', weight = 10, type = 'item', image = 'bat_high.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A high capacity battery' },
    chip_5g = { name = 'chip_5g', label = '5G Chip', weight = 10, type = 'item', image = 'chip_5g.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A chip that enables 5G connection' },
    chip_ghost = { name = 'chip_ghost', label = 'Ghost Chip', weight = 10, type = 'item', image = 'chip_ghost.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A chip that hides connections' },
    chip_antihack = { name = 'chip_antihack', label = 'Antihack Chip', weight = 10, type = 'item', image = 'chip_antihack.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A chip to prevent hacking' },
    mic_walkie = { name = 'mic_walkie', label = 'Talkie Shoulder Microphone', weight = 10, type = 'item', image = 'mic_walkie.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A shoulder microphone for walkie talkies' },
    hack_chip = { name = 'hack_chip', label = 'Hack chip', weight = 10, type = 'item', image = 'hack_chip.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A chip used for hacking' },
    radio_server = { name = 'radio_server', label = 'Server', weight = 10, type = 'item', image = 'radio_server.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A server device' },
    radio_monitor = { name = 'radio_monitor', label = 'Monitor of hospital', weight = 10, type = 'item', image = 'radio_monitor.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A monitor used in hospitals' },
    radio_server_bat = { name = 'radio_server_bat', label = 'Car battery', weight = 10, type = 'item', image = 'radio_server_bat.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A battery for servers' },
    radio_cables = { name = 'radio_cables', label = 'Cables for battery', weight = 10, type = 'item', image = 'radio_cables.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'Cables used for connecting batteries' },
    radio_jammer = { name = 'radio_jammer', label = 'Radio Jammer', weight = 10, type = 'item', image = 'radio_jammer.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A device that jams radio signals' },
    radio_powerbank= { name = 'radio_powerbank', label = 'Portable battery', weight = 10, type = 'item', image = 'radio_powerbank.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A portable battery for general use' },
    radio_tool = { name = 'radio_tool', label = 'Radio tools', weight = 10, type = 'item', image = 'radio_tool.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'Tools used for repairing radios' },
    radio_broken = { name = 'radio_broken', label = 'Broken radio', weight = 10, type = 'item', image = 'radio_broken.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A radio that no longer works' },
    chip_waterproof = { name = 'chip_waterproof', label = 'Waterproof radio', weight = 10, type = 'item', image = 'chip_waterproof.png', unique = true, useable = false, shouldClose = false, combinable = nil, description = 'A radio chip with waterproof capabilities' },

STEP 3

GO TO core_inventory/config.lua

Add the radio item on CloseAfterUse ~ line 25

CloseAfterUse = {'lockpick', 'phone', 'radio'},  

STEP 4

GO TO core_inventory/server/metadata.lua

elseif itemData['name'] == 'radio' then
	local radioST = exports['stRadio']:CreateRadio(false, false, true)
	info.id = radioST.id
        info.prop = radioST.prop
	info.alias = radioST.alias
	info.currentFreq = radioST.currentFreq
	info.freqFav = radioST.freqFav
	info.freqLast = radioST.freqLast
	info.password = radioST.password
	info.modules = radioST.modules
	info.favs = radioST.favs
	info.secure = radioST.secure
	info.battery = radioST.battery
	info.api = radioST.api
elseif itemData['name'] == 'bat_low' then
	info.batLevel = exports['stRadio']:CreateBattery(10, 100)
elseif itemData['name'] == 'bat_medium' then
	info.batLevel = exports['stRadio']:CreateBattery(10, 100)
elseif itemData['name'] == 'bat_high' then
	info.batLevel = exports['stRadio']:CreateBattery(10, 100)
elseif itemData['name'] == 'radio_powerbank' then
	info.battery = 100
elseif itemData['name'] == 'radio_jammer' then
	info.battery = exports['stRadio']:GetJammerTime()
end
PreviousPS inventoryNextOX inventory

Last updated 6 months ago

Was this helpful?

📚