[Release] [JS] Radio

Got it working but is there a way to also remove the text from the “old” radio station? So only the new name remains?

Hi, I got the mod to work and it changes the radio stations just fine.

The problem im having is that i dont seem to find the way to change the Icons on the radio. I have tried some internet tutorials and i have done this folder structure

…/radiocustom/stream/hud.ytd
…/radiocustom/__resource.lua

__resource.lua is empty. Are you sure this must be empty? In every tutorial i have read and watched it sais so, but my friend who is also doing the server sais its must have somethin in it.

Thanks in advance.

Uncaught (in promise) TypeError: Failed to fetch (@radio/index.html:0)

What does this mean? It was working just fine yesterday.

I have the same issue. Only 1 stations still works. There was a update today on FiveM, maybe that messed it up …

Could very well be. Do servers need to be updated as well?

From what I understand they’ve been changing several things related to NUI functions lately. Last time this happened, they resolved the issue in an update pretty quickly. Glad to know I’m not the only one having trouble.

We are having the same problem with NUI based sounds. Even our loading screen uses NUI and a video for the loading screen. All that has just quit working very recently. Must be a recent update, hopefully there’s a solution pretty quick.

So all the AAC streams won’t work anymore… Which makes it basically impossible to run this, because not even my parents are old enough to listen to the type of .ogg streams still available right now.

I’ve searched everywhere, and all of em are really sh*t.

1 Like

God I hope somebody finds a way even if it means me taking an AAC stream and restreaming it in Vorbis with a couple second delay. I can’t find 1 station I have ever heard of from no with a working stream.

I’ve done some work on it, and I have gotten the radio to support MP3, if you’d like it dm me on here.

8 Likes

Hi, how it this works?

How do i make it replace a song ?

Anyone have the IDs of the newer radio stations, this plugin is old and the list is outdated

hey man, would you be kind enough to share this with me?

1 Like

Not sure if this release is still being supported, but is there any way that we can push our custom Now Playing data? Don’t need to extract it from the stream, we have an API endpoint we can use to get the info?

Try using HIDDEN_RADIO_01_CLASS_ROCK ? Here’s an updated list I found from a FiveM Wiki archive

RADIO_01_CLASS_ROCK // Los Santos Rock Radio
RADIO_02_POP // Non-Stop-Pop FM
RADIO_03_HIPHOP_NEW // Radio Los Santos
RADIO_04_PUNK // Channel X
RADIO_05_TALK_01 // West Coast Talk Radio
RADIO_06_COUNTRY // Rebel Radio
RADIO_07_DANCE_01 // Soulwax FM
RADIO_08_MEXICAN // East Los FM
RADIO_09_HIPHOP_OLD // West Coast Classics
RADIO_11_TALK_02 // Blaine County Radio
RADIO_12_REGGAE // Blue Ark
RADIO_13_JAZZ // Worldwide FM
RADIO_14_DANCE_02 // FlyLo FM
RADIO_15_MOTOWN // The Lowdown 91.1
RADIO_16_SILVERLAKE // Radio Mirror Park
RADIO_17_FUNK // Space 103.2
RADIO_18_90S_ROCK // Vinewood Boulevard Radio
RADIO_19_USER // Self Radio
RADIO_20_THELAB // The Lab
RADIO_21_DLC_XM17 // Blonded Los Santos 97.8 FM
RADIO_22_DLC_BATTLE_MIX1_CLUB
RADIO_22_DLC_BATTLE_MIX1_RADIO // Los Santos Underground Radio
RADIO_23_DLC_BATTLE_MIX2_CLUB
RADIO_24_DLC_BATTLE_MIX3_CLUB
RADIO_25_DLC_BATTLE_MIX4_CLUB
RADIO_26_DLC_BATTLE_CLUB_WARMUP

DLC_BATTLE_MIX1_CLUB_PRIV
DLC_BATTLE_MIX2_CLUB_PRIV
DLC_BATTLE_MIX3_CLUB_PRIV
DLC_BATTLE_MIX4_CLUB_PRIV

HIDDEN_RADIO_01_CLASS_ROCK
HIDDEN_RADIO_02_POP
HIDDEN_RADIO_03_HIPHOP_NEW
HIDDEN_RADIO_04_PUNK
HIDDEN_RADIO_06_COUNTRY
HIDDEN_RADIO_07_DANCE_01
HIDDEN_RADIO_09_HIPHOP_OLD
HIDDEN_RADIO_12_REGGAE
HIDDEN_RADIO_15_MOTOWN
HIDDEN_RADIO_16_SILVERLAKE
HIDDEN_RADIO_ADVERTS
HIDDEN_RADIO_AMBIENT_TV
HIDDEN_RADIO_AMBIENT_TV_BRIGHT
HIDDEN_RADIO_BIKER_CLASSIC_ROCK
HIDDEN_RADIO_BIKER_HIP_HOP
HIDDEN_RADIO_BIKER_MODERN_ROCK


HIDDEN_RADIO_BIKER_PUNK
HIDDEN_RADIO_STRIP_CLUB

@Crazedslaw

1 Like

Does anyone here happen to know how to change the ‘Now Playing’ information in the radio wheel?

I don’t know why but it isn’t working. Do I just put the .ogg links in the resource like it says and copy the command frame like the two example songs and call it good? Am I missing a step?

Can someone confirm it’s still working or tell me how to made it work currently? I can’t get it to work and any help would be very appreciated

Hi,
May I ask why it’s not working, even though for the rthk and BBC uk?
Here is my resources lua


resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"

-- Example custom radios
supersede_radio "RADIO_01_CLASS_ROCK" { url = "https://tunein.com/radio/RTHK-Radio-1-926-s14487/", volume = 0.3, name = "香港電台 第一台"  }
supersede_radio "RADIO_02_POP" { url = "https://tunein.com/radio/RTHK-Radio-2-948-s14488/", volume = 0.3, name = "香港電台 第二台"  }
supersede_radio "RADIO_03_HIPHOP_NEW" { url = "https://tunein.com/radio/RTHK-Radio-3-979-s25670/", volume = 0.3, name = "香港電台 第三台"  }
supersede_radio "RADIO_04_PUNK" { url = "https://tunein.com/radio/RTHK-Radio-4-976-s25671/", volume = 0.3, name = "香港電台 第4台"  }
supersede_radio "RADIO_05_TALK_01" { url = "https://tunein.com/radio/BBC-Radio-1-988-s24939/", volume = 0.3, name = "BBC radio 1"  }
supersede_radio "RADIO_06_COUNTRY" { url = "https://tunein.com/radio/Capital-Coventry-962-s45505/", volume = 0.3, name = "Capital Conventry UK"  }
supersede_radio "RADIO_07_DANCE_01" { url = "https://tunein.com/radio/D100-HK-Radio-s189373/", volume = 0.3, name = "D100 大聲台 講真話 行公義 好憐憫"  }
supersede_radio "RADIO_08_MEXICAN" { url = "https://tunein.com/radio/BBC-Radio-1Xtra-s20277/", volume = 0.3, name = "BBC radio 1Xtra Hip Hop"  }




files {
	"index.html"
}

ui_page "index.html"

client_scripts {
	"data.js",
	"client.js"
}