Fivem Bubble Sound Pack Access
ui_page 'html/index.html' Config = {} -- Sound files list (without extension) Config.BubbleSounds = 'bubble1', 'bubble2', 'bubble3', 'bubble_pop'
-- Volume (0.0 to 1.0) Config.Volume = 0.4
-- Function to play sound from client function PlayBubbleSound(soundName) SendNUIMessage( type = 'playSound', sound = soundName ) end Fivem Bubble Sound Pack
exports['bubble_sounds']:PlayBubbleSound('bubble_pop') Edit your notification script – inside the SendNotification function add:
client_scripts 'config.lua', 'client/client.lua' ui_page 'html/index
files 'html/sounds/*.ogg', 'html/index.html'
Then in client.lua :
-- Command to play random bubble sound Config.CommandName = 'bubble' local isNuiReady = false -- Load NUI for audio CreateThread(function() SendNUIMessage( type = 'loadSounds', sounds = Config.BubbleSounds, volume = Config.Volume ) end)