Coder Social home page Coder Social logo

jlawster / altv-v15-radio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jovanivanovic/altv-radio

6.0 0.0 2.0 2.26 MB

alt:V Online radio resource that replaces the default GTA V vehicle radio

License: MIT License

JavaScript 54.26% CSS 4.91% HTML 40.83%

altv-v15-radio's Introduction

BETTER alt:V Radio support v15 audio API

ONLY AVAILABLE FOR alt:V 15.xx version

BETTER alt:V Radio resource replaces the default GTA V vehicle radio with custom online radio stations.

I'm using the vehicle as audio emitter

3d AUDIO Volume Control

Previews: https://streamable.com/9eejd6

https://streamable.com/ccbvrr

https://streamable.com/ehu3ct

Installation

Download the resource and add it to resources folder of your server and add it to the server.toml.

Usage

There are currently some default stations loaded into the radio. If you wish to change them and add yours, go to /server/config.mjs. There you will find an array of radio stations.

Audio API requires 2 channels, 16 bit, 48000 Hz audio format

You can edit maximum audio range in client.mjs line 17

    category.volume =30;

For QWERTY keyboard, replace "eu" by "us" in radio.html line 139 and 147

Radio Station Object format

{
    name: 'Name of the radio station',
    url: 'Radio station\'s stream url',
    image: 'Radio station\'s logo image',
    volume: 60 // This is optional, default volume is 40
}

TO DO

Key bindings

Add filters when doors closed/open, windows up/down

Sync radio with near players

In-game usage

While in a vehicle, scroll the mouse wheel while holding the A key. Up volume using , (; for EU) INPUT_VEH_PREV_RADIO Down volume using . (: for EU) INPUT_VEH_NEXT_RADIO

Known issues

Only one station is available

CREDITS

https://github.com/jovanivanovic/altv-radio for the menu

alt:V team for the wonderful audio API and platform

Thanks to splak for the optimization help

Thanks to BluePeer for multistream help

Jlawster for the improvements

License

MIT

altv-v15-radio's People

Contributors

jlawster avatar jovanivanovic avatar codelit avatar

Stargazers

Tobias Franz avatar Go Ga avatar  avatar グスタボ  avatar FabOne avatar  avatar

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.