π Enhance your FiveM server with an interactive sound toggle system! π
This script allows players to start and stop sounds at designated locations using the QB-Target system. Integrated with XSound, it provides a seamless and immersive audio experience for roleplay environments such as hospitals, gyms, clubs, and more.
β¨ Features:
β
Interactive Sound Control β Players can toggle sounds at specific locations.
β
QB-Target Integration β Uses target-based interaction instead of commands.
β
XSound Compatibility β High-quality, positional sound playback.
β
Configurable Locations & Sounds β Easily define multiple locations and assign different sounds.
β
Optimized Performance β Clean and lightweight code for smooth server performance.
β
Customizable Notifications β Notifications are now modular, allowing easy integration with QBCore Notify, mythic_notify, okokNotify, and more.
π How It Works:
1οΈβ£ Players interact with designated locations (e.g., MRI scanner, radio station, or concert speakers).
2οΈβ£ A notification appears, allowing them to start/stop the sound.
3οΈβ£ The sound plays within a set range and volume, configurable via the config.lua file.
π§ Requirements:
βοΈ QB-Target
βοΈ XSound for FiveM
π‘ Perfect for Roleplay Servers looking for interactive audio experiences!