-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Describe the bug
- If you want to play more than one sound within 1 to 2 seconds, the entire NUI interface restarts itself due to xsound.
To Reproduce / To experience this
- Add the following code to any script's client.lua file
- Replace the music in the Soundlist with your own selected music or sound effects.
local list = {
“test”,
“test2”,
“test3”,
“ring”,
“dong”,
“ding”,
}
RegisterCommand(‘xsound’, function()
for _, sound in pairs(list) do
TriggerServerEvent(‘InteractSound_SV:PlayOnSource’, sound, 0.1)
print((‘The sound is %s Playing’):format(sound))
Wait(250)
end
end)
Expected behavior
- Type xsound, and after the loop stops, observe a white image flickering on your screen for a few seconds. From this point on, you may notice that UI elements such as the phone, inventory, or HUD have disappeared and become unusable.
Screenshots / Videos
https://streamable.com/9tl257
https://streamable.com/yj0548
Additional context
Metadata
Metadata
Assignees
Labels
No labels