Lukyspore

sh_config.lua

Sep 2nd, 2022 (edited)
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.34 KB | None | 0 0
  1. LDT_Radio = LDT_Radio or {}
  2. LDT_Radio.Config = LDT_Radio.Config or {}
  3.  
  4. LDT_Radio.Config.DisableCommand = "disableradios" -- This is the command for disabling all radios. This string will be prepended with "!" and "/"
  5. LDT_Radio.Config.EnableCommand = "enableradios" -- This is the command for enabling all radios. This string will be prepended with "!" and "/"
  6.  
  7. LDT_Radio.Config.Language = "en" -- Currently there are en, tr, fr, es, ru, cn, ua and de translations available.
  8.  
  9. LDT_Radio.Config.AdminRanks = { -- These ranks can change and modify any radio.
  10.     ["superadmin"] = true,
  11.     ["admin"] = true
  12. }
  13.  
  14. LDT_Radio.Config.DisableParticles = false -- Disables the note particles when a radio is playing.
  15.  
  16. LDT_Radio.Config.RadioMusicDistance = 250000 -- The maximum distance the radio will be heard at.
  17.  
  18. LDT_Radio.Config.DisableCarRadio = false -- Disables the Car Radio feature
  19.  
  20. LDT_Radio.Config.TurnOffCarRadioOnVehicleLeave = false -- Tuns of the radio when the driver leaves the vehicle.
  21.  
  22. LDT_Radio.Config.OpenCarRadioButton = KEY_T -- Which key opens the car radio UI
  23.  
  24. LDT_Radio.Config.MaxVolume = 1 -- The maximum volume a radio can be set to.
  25.  
  26. -- OPTIONAL --
  27. -- If you wish to modify the radios. Follow this guide.
  28. -- 1. First, you need to copy the sh_radios.json from my website: https://spiralservers.net/gmod_radio/sh_radios.json
  29. -- 2. Then you need to either put it on your website where it can be accessed by the addon.
  30. --    Or you can use a service like GitHub Gist where you can upload text files.
  31. -- 3. If you are using your website copy the URL and put it into the RadiosURL.
  32. --    If you are using GitHub gist you need to upload a public gist. And then view it as raw. Then you can copy the raw URL and put it into the RadiosURL.
  33. -- 4. Now restart the server and your custom radios should be loaded. If not create a support ticket on GmodStore.
  34. LDT_Radio.Config.RadiosURL = "https://spiralservers.net/gmod_radio/sh_radios.json"
  35.  
  36. -- These are the colors for every element of the UI. Feel free to change them to your liking.
  37. LDT_Radio.Config.Red = Color(255, 63, 5)
  38. LDT_Radio.Config.White = Color(255,255,255)
  39. LDT_Radio.Config.Grey = Color(47, 54, 64)
  40. LDT_Radio.Config.GreySecond = Color(53, 59, 72)
  41. LDT_Radio.Config.GreyThird = Color(53, 59, 72,100)
  42. LDT_Radio.Config.Yellow = Color(254, 211, 48)
  43. LDT_Radio.Config.Blue = Color(0, 151, 230)
  44.  
Advertisement
Add Comment
Please, Sign In to add comment