ogidevs
November 14, 2023, 12:05am
1
This is a FIVEM vehicle radio script which keeps the original gta 5 radio look with the ability to change stations name, sound (as radios for example) and picture (hud.ytd → change textures using open iv for example)
Changing the radios sound and name is easily done through fxmanifest.lua
Vehicle radios are synced between players and can be heard outside of the vehicles (distance is based on volume)
Installation steps
Overview
SHOWCASE: 2023-11-13 19-14-38
Huge inspiration: [Release] [JS] Radio
Dependencies
qb-core (https://github.com/search?q=qbcore&type=repositories )
ox_lib - for the options menu (GitHub - overextended/ox_lib: Modules to utilise in other resources via imports and exports. )
xsound (GitHub - Xogy/xsound: Improved audio library for FiveM )
Installation
Download the resource, put it in your resources folder, ensure it and then do the following:
Locate config.lua > availableRadios, this list provides a complete list of radios that are available in GTA 5
Locate fxmanifest.lua
Add / Remove radios like shown in the examples. (Do not remove the radio with url = “options”, you will lose the options menu on the radio wheel)
NOTE: URLs must be https://…
Features
Fully synced radios between players
Radios can be heard outside of the vehicles that have their engines on
0.00 - 0.01 CPU usage
Multi-Language Support using QBCore Locales
24/7 Support on discord
Bugs
If you encounter any bug, please feel free to reach out to me on discord (ogidev)
TODO
Add support for ESX
Add support for different inputs
Refactoring / Optimisations
YOUR PART
Feel free to do PRs
CONTRIBUTIONS
Big thanks to tsfs (discord) for rewritting the lang and adding support for ESX
My Discord: ogidev
Github (Download): Here
5 Likes
this work on ESX? seen the add support for ESX crossed out?
CJ_Hawk
November 14, 2023, 5:58pm
4
Great script is it possible to make it so they need to install a item to allow use of the media player part where they use links from YouTube
ogidevs
November 14, 2023, 7:57pm
5
I would like to keep the script standalone, although I will gladly give you an edited version with item check, hit me up on discord (ogidev)
lalalalalalaalalalalallalalaall marganlalalalalai lalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalala
I get this error Server Callback not registered, name: ogi-car-radio:server:getRadios, invoker resource: radio
ogidevs
November 15, 2023, 2:38pm
8
Hey,
There are 2 things to keep in mind:
Make sure that you fully read and understood readme, that being said you have to have ox_lib on your sever
Also, unless you know what you are doing I highly recommend to keep the resource name as it is.
Did you rename the resource if so change it everywhere, i believe there is a getresourcename function in there
Can you add the muffled effect car radio ?
ogidevs
November 15, 2023, 6:22pm
12
If you mean muffled outside the vehicle, I’ll see what i can do.
Does it support m3u8? If not when is the ETA for it.
ogidevs
November 15, 2023, 7:43pm
14
nek0ttzu:
m3u8
I honestly don’t know, you will have to check, because I did not develop xsound, resource used for playing the sounds.
Hey, nice script. I have the problem, if one player turns radio off, it turn off for everyone, even if the other person is in a car on the other side of the map.
Ok so, it crashes server above 150+ players
The Music only plays for 2seconds then the YT Video (Radio) stops.