Giter Site home page Giter Site logo

fivem-radio's Introduction

FiveM Radio

This resource allows you to integrate your own radios in place of the original radios. It's fully written in JavaScript and uses resource metadata for its configuration.

Features

  • Radio wheel
  • Audio file
  • Audio stream
  • No dependency
  • Easy configuration
  • Player-configurable volume

Showcase

Video showing Los Santos Rock Radio replaced by a WebRadio and Non-Stop-Pop FM replaced by a song: Showcase

Known bugs and limitations

  • No MPEG or AAC support as CEF only supports open formats

Configuration

For each custom radio, add this line in fxmanifest.lua:

supersede_radio "[ORIGINAL_RADIO_NAME]" { url = "[RADIO URL]", volume = 0.5, name = "[NEW RADIO NAME]" }

You can find the list of radio names in data.js and a full example in fxmanifest.lua.

Tips

Stream a modified hud.ytd (gtav_radio_stations_texture_512) file to replace radio logos.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

fivem-radio's People

Contributors

hellslicer avatar hunt3red avatar raccoonwx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fivem-radio's Issues

Load, but dont works!

Hi, i found this scrpit a few days ago... I think it can be great but i cant set up correctly...

The script loads fine.

Started resource fivem-radio

No errors in load... but when im in the game the script seems to do nothing...

in F8 says:

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

Thanks! :D

Hi

Hi bro

Problème avec la radio

Bonjour, j'ai installé le script de radio puis quand je suis aller dans un véhicule sur FiveM il n'y avait pas de sons j'ai donc vérifié mais paramètre mais tout était bon alors j'ai ouvert la console en jeu (F8) et j'ai vu cette erreur qui venait quand je changer de radio (les radios modifier).

nui://radio/index.html:117, Uncaught TypeError: Connot read property 'stop' of undefined

Max volume when you have muted music volume

Lovely resource, and have used it for a long time, though:

The volume is blasting out at max, if you have completely turned down volume in your GTA options.
Could this be fixed?

Question

Im trying to use a HLS m3u8 stream and it's not working. Is this format supported?

Doesnt work

If the autor of the script fix it i will be so thankful.

Failed load resource

"Couldn't load resource fivem-radio-master. :("
This is an error when i try to enter into my fivem server, i started "fivem-radio-master" into server.cfg

2545 mpsecurity Radio Stations

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 // User Music FM

RADIO_20_THELAB // The Lab

RADIO_21_DLC_XM17 // Blonded Los Santos 97.8 FM

RADIO_27_DLC_PRHEI4 // Still Slipping Los Santos

RADIO_34_DLC_HEI4_KULT // Kult FM

RADIO_35_DLC_HEI4_MLR // The Music Locker

RADIO_36_AUDIOPLAYER // Media Player

RADIO_37_MOTOMAMI // MOTOMAMI Los Santos

The ability to force a reload of the radio for yourself (or something similar)

So, for whatever reason, some players on my server have problems with the radio getting stuck playing, even while not in a car, but I don't think I've ever experienced that. So as a solution, having a command added that could reload the radio for yourself so it would stop playing whatever is playing, or have a command to change the volume of the radio yourself so people could set it so 0 to mute it if they wanted to.

Nothing happends after adding the script

Hello Hellslicer and anyone else,

My name is Robert and i found your script a few days ago. I was very enthusiastic about it, but it didn't work on my server. It is an esx server and i have another 300 scripts on it, i just added it in the resources folder and started it from server.cfg. The resource was loaded but nothing happend. Can u help me with this, any tipps you have?

Thank you very much man, i appreciate your work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.