Skip to content

NUI Interface is crashing! #70

@ayazwai

Description

@ayazwai

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions