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
  • Radio
  • How to add in script shops
  • Battery
  • How to add in script shops
  • Jammer
  • How to add in script shops
  • Power Bank
  • How to add in script shops

Was this helpful?

  1. SCRIPTS
  2. RADIO
  3. Snippets

Add to Store/Shop

The radio works with metadata, and this is generated automatically the first time if it has no metadata. To avoid this or any bug it is recommended to add to the store directly the code that gives the

Radio

The export to create the radio is this

exports['stRadio']:CreateRadio(false, false, true)

How to add in script shops

../config.lua
 {  name = 'radio', price = 250, amount = 50, info = exports['stRadio']:CreateRadio(false, false, true)},
../data/shops.lua
{ name = 'radio', price = 250},

Battery

The export to give battery %

exports['stRadio']:CreateBattery(10, 100) -- random number from 10 to 100

How to add in script shops

If you want to make it simpler you can do it directly with a number

 name = 'bat_low', price = 250, amount = 50, info = {batLevel = 100}},
../config.lua
{ name = 'bat_low', price = 250, amount = 50, info = {batLevel = 100}},
{ name = 'bat_medium', price = 250, amount = 50, info = {batLevel = 100}},
{ name = 'bat_high', price = 250, amount = 50, info = {batLevel = 100}},
../data/shops.lua
{ name = 'bat_low', price = 100},
{ name = 'bat_medium', price = 100},
{ name = 'bat_high', price = 100},

Jammer

The export to get battery %

exports['stRadio']:GetJammerTime()

How to add in script shops

If you want to make it simpler you can do it directly with a number

 name = 'radio_jammer', price = 250, amount = 50, info = {battery = 100}},
../config.lua
{ name = 'radio_jammer', price = 250, amount = 50, info = 120},
../data/shops.lua
{ name = 'radio_jammer', price = 100},

Power Bank

The export to give battery %

exports['stRadio']:CreateBattery(1, 100) -- random number from 10 to 100

How to add in script shops

If you want to make it simpler you can do it directly with a number

 name = 'radio_powerbank', price = 250, amount = 50, info = {battery = 100}},
../config.lua
{ name = 'radio_powerbank', price = 250, amount = 50, info = {battery = 100},
../data/shops.lua
{ name = 'radio_powerbank', price = 100},
Previouspma-voiceNextConfig

Last updated 3 months ago

Was this helpful?

📚