Jump to content

[JS, CEF] Internet Radio 1.0.1

   (3 reviews)

1 Screenshot

About This File

Internet radio over colshapes using CEF.

Scope of application: custom clubs, interiors.

Default location is the Galileo Observatory (behind the monument).

Default radio station - Wacken Radio (DE).


I. Put server files to: server-files\packages\yourGameMode

II. Add require('./rStreamColshapes');  to your server's index.js

III. Put client files to: client_packages then edit your client's index.js and add require('./rStream');

To change radio stream url, edit index.html here: client_packages\cef\rStream\index.html



What's New in Version 1.0.1   See changelog


Reworked CEF and scripts, thanks to Loxitation

  • Like 2

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


   3 of 3 members found this review helpful 3 / 3 members

Hey, I've re-worked your script a little bit to fix the error that you call the radio in every colshape.




function playerEnterColshapeHandler(player, shape) {
    if(shape == rStreamColshape) {
        player.notify(`Radio stream started`);
        player.call("cRadio-Start", []);
mp.events.add("playerEnterColshape", playerEnterColshapeHandler);

function playerExitColshapeHandler(player, shape) {
    if(shape == rStreamColshape) {
        player.notify(`Radio stream stopped`);
        player.call("cRadio-Stop", []);
mp.events.add("playerExitColshape", playerExitColshapeHandler);

//Calling the CEF with player.call"cRadio[...]"

and clientside


let rStream = null;

    "cRadio-Start" : () => {
        rStream = mp.browsers.new('package://RP/Browsers/rStream/index.html');
    "cRadio-Stop" : (lang, inject) => {




I hope it helps you out 🙂

Response from the author:

It works, thank you!

  • Like 2
Link to review

   1 of 1 member found this review helpful 1 / 1 member

Wacken Junge 🤘

Link to review

   1 of 2 members found this review helpful 1 / 2 members

The script works, but now when entering any other collshape the radio stream is turned on. How to fix?

Link to review
  • Create New...