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
  • STEP 3

Was this helpful?

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

TGIANN inventory

Installation tgiann on stRadio

STEP 1

GO TO tgiann-inventory/configs/configMetadata.lua -Copy and paste the content after some

local stRadio = GetResourceState("stRadio") == "started"
if stRadio then
    config.metadata = {
        radio = {
            { metadata = "alias",       value = "Alias:" },
            { metadata = "currentFreq", value = "Freq:" },
            { metadata = "battery",     value = "Battery:" },
        },
        radio_powerbank = {
            { metadata = "battery", value = "Battery:" },
        },
        radio_jammer = {
            { metadata = "battery", value = "Battery:" },
        },
        bat_low = {
            { metadata = "batLevel", value = "Battery:" },
        },
        bat_medium = {
            { metadata = "batLevel", value = "Battery:" },
        },
        bat_high = {
            { metadata = "batLevel", value = "Battery:" },
        }
    }
end

STEP 2

GO TO tgiann-inventory/server/editable.lua -> line 221

		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()

STEP 3

GO TO qb-core/shared/items.lua and copy and paste this

  • Search the "radio" item and remplace

    radio = {
        description = "",
        image = "radio.png",
        label = "Radio",
        name = "radio",
        shouldClose = true,
        type = "item",
        unique = true,
        useable = true,
        weight = 100,
    },
  • Add this items

radio_red                    = { name = 'radio_red',            label = 'Color frame red',            weight = 500,   type = 'item', image = 'radio_red.png',         unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_blue                   = { name = 'radio_blue',           label = 'Color frame blue',           weight = 500,   type = 'item', image = 'radio_blue.png',        unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_purple                 = { name = 'radio_purple',         label = 'Color frame purple',         weight = 500,   type = 'item', image = 'radio_purple.png',      unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_pink                   = { name = 'radio_pink',           label = 'Color frame pink',           weight = 500,   type = 'item', image = 'radio_pink.png',        unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_lightblue              = { name = 'radio_lightblue',      label = 'Color frame lightblue',      weight = 500,   type = 'item', image = 'radio_lightblue.png',   unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_orange                 = { name = 'radio_orange',         label = 'Color frame orange',         weight = 500,   type = 'item', image = 'radio_orange.png',      unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_yellow                 = { name = 'radio_yellow',         label = 'Color frame yellow',         weight = 500,   type = 'item', image = 'radio_yellow.png',      unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_green                  = { name = 'radio_green',          label = 'Color frame green',          weight = 500,   type = 'item', image = 'radio_green.png',       unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_white                  = { name = 'radio_white',          label = 'Color frame white',          weight = 500,   type = 'item', image = 'radio_white.png',       unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
radio_grey                   = { name = 'radio_grey',           label = 'Color frame grey',           weight = 500,   type = 'item', image = 'radio_grey.png',        unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Color frame for radio' },
bat_low                      = { name = 'bat_low',              label = 'Cheap battery',              weight = 500,   type = 'item', image = 'bat_low.png',           unique = true,  useable = false, shouldClose = false, combinable = nil, description = 'Cheap battery, lasts little and fails a lot' },
bat_medium                   = { name = 'bat_medium',           label = 'Common battery',             weight = 500,   type = 'item', image = 'bat_medium.png',        unique = true,  useable = false, shouldClose = false, combinable = nil, description = 'Battery in good condition, lasts a long time but can fail' },
bat_high                     = { name = 'bat_high',             label = 'Premium battery',            weight = 500,   type = 'item', image = 'bat_high.png',          unique = true,  useable = false, shouldClose = false, combinable = nil, description = 'High quality battery' },
chip_5g                      = { name = 'chip_5g',              label = '5G Chip',                    weight = 500,   type = 'item', image = 'chip_5g.png',           unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Chip for long distance talking' },
chip_ghost                   = { name = 'chip_ghost',           label = 'Ghost Chip',                 weight = 500,   type = 'item', image = 'chip_ghost.png',        unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Dont appear on any list' },
chip_antihack                = { name = 'chip_antihack',        label = 'Antihack Chip',              weight = 500,   type = 'item', image = 'chip_antihack.png',     unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Your radio will always be safe' },
mic_walkie                   = { name = 'mic_walkie',           label = 'Talkie Shoulder Microphone', weight = 500,   type = 'item', image = 'mic_walkie.png',        unique = false, useable = false, shouldClose = false, combinable = nil, description = 'Walkie Talkie Shoulder Microphone' },
hack_chip                    = { name = 'hack_chip',            label = 'Hack chip',                  weight = 500,   type = 'item', image = 'hack_chip.png',         unique = false, useable = true,  shouldClose = false, combinable = nil, description = 'Unlock radios with password' },
radio_server                 = { name = 'radio_server',         label = 'Server',                     weight = 500,   type = 'item', image = 'radio_server.png',      unique = true,  useable = true,  shouldClose = false, combinable = nil, description = '' },
radio_monitor                = { name = 'radio_monitor',        label = 'Monitor of hospital',        weight = 500,   type = 'item', image = 'radio_monitor.png',     unique = true,  useable = true,  shouldClose = false, combinable = nil, description = '' },
radio_server_bat             = { name = 'radio_server_bat',     label = 'Car battery',                weight = 500,   type = 'item', image = 'radio_server_bat.png',  unique = true,  useable = true,  shouldClose = false, combinable = nil, description = '' },
radio_cables                 = { name = 'radio_cables',         label = 'Cables for battery',         weight = 500,   type = 'item', image = 'radio_cables.png',      unique = true,  useable = true,  shouldClose = false, combinable = nil, description = '' },
chip_waterproof              = { name = 'chip_waterproof',      label = 'Waterproof radio',           weight = 500,   type = 'item', image = 'chip_waterproof.png',   unique = true,  useable = true,  shouldClose = false, combinable = nil, description = 'Waterproof for radio' },
radio_broken                 = { name = 'radio_broken',         label = 'Broken Radio',               weight = 500,   type = 'item', image = 'radio_broken.png',       unique = true,  useable = true,  shouldClose = false, combinable = nil, description = 'Radio broken' },
radio_tool                   = { name = 'radio_tool',           label = 'Tool for radio',             weight = 500,   type = 'item', image = 'radio_tool.png',         unique = false, useable = true,  shouldClose = true,  combinable = nil, description = 'Tool for radios' },
radio_powerbank                 = { name = 'radio_powerbank',         label = 'Portable battery',           weight = 500,   type = 'item', image = 'radio_powerbank.png',      unique = true,  useable = true,  shouldClose = false, combinable = nil, description = 'Battery for your radio' },
radio_jammer                 = { name = 'radio_jammer',         label = 'Radio Jammer',               weight = 500,   type = 'item', image = 'radio_jammer.png',      unique = true,  useable = true,  shouldClose = false, combinable = nil, description = '' },
PreviousQB inventoryNextCODEM inventory

Last updated 1 month ago

Was this helpful?

📚