Elevate the driving experience on your server with One Radio Car. This isn't just a simple music player; it's a professional, immersive audio system that allows players to manage their own playlists with real-time synchronization across the entire city.
β¨ Key Features
πΎ Full SQL Persistence: Saved songs are linked to the vehicle's license plate. If a player saves a custom playlist to their personal car, it will be there every time they step in, even after a server restart.
π΅ Customizable Playlists: Dual-interface system that allows toggling between a Global Default List (configured by staff) and a Vehicle Private List where players can edit names and URLs from YouTube or direct links.
π Realistic 3D Audio & Occlusion: Powered by
xsound, the audio doesn't just follow the carβit reacts to the environment. If the doors are closed, the sound is muffled from the outside; open the trunk or doors at a "Car Meet," and the volume and range increase dynamically.π₯ Global Passenger Sync: Every player (inside and outside the vehicle) hears the exact same thing. Volume control and track changes are instantly synced for everyone nearby.
π οΈ Item-Based Installation: Optional configuration to require a physical radio installation (using an inventory item) before players can access the system.
π Technical Highlights
Zero-Configuration Logic: Dynamic NUI system using
GetParentResourceName. You can rename the script folder at any time, and nothing will break.Extreme Optimization: 0.00ms on idle. Audio threads and the NUI interface only activate when music is playing or the UI is open.
Smart Cache Cleanup: Automated system that detects deleted or "despawned" vehicles to wipe audio instances, preventing client-side memory leaks.
Hybrid Framework: Native support for both ESX and QBCore, with automatic detection of owner tables (
owned_vehicles/player_vehicles).
π οΈ Total Customization (config.lua)
Distance Scaling: Define exactly how far the music can be heard (default 35m).
Vehicle Blacklist: Disable the radio for bicycles, emergency vehicles, or boats.
Owner-Only Mode: Optional restriction so only the legal owner of the vehicle can edit the saved song list.
Universal Notifications: Easily plug in your preferred notification system (compatible with any custom or framework-based export).
π¦ Package Content
Complete Script: Client, Server, and NUI files (HTML/JS/CSS).
Auto-SQL Setup: The script automatically creates the necessary tables (
radiocarandradiocar_owned) on startup.Setup Guide: Step-by-step documentation to add new default radio stations.
π‘ Why choose One Radio Car? Unlike other radio scripts that offer flat audio, One Radio Car provides a high-end tool for roleplay and immersion. Itβs the definitive solution for mechanics (who can install the radios) and tuning enthusiasts looking to make their car stand out with powerful, realistic, and persistent sound.
