1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-03 19:23:41 +02:00
parent 0796557bb6
commit 585ee069c2
2 changed files with 64 additions and 9 deletions

View file

@ -188,7 +188,6 @@ RegisterNetEvent('dj:client:receiveActiveDJs', function(booths)
end
end)
-- NUI Callbacks
RegisterNUICallback('djInterfaceClosed', function(data, cb)
SetNuiFocus(false, false)
isUIOpen = false
@ -199,9 +198,18 @@ RegisterNUICallback('djInterfaceClosed', function(data, cb)
-- Aktiviere alle Controls wieder
EnableAllControlActions(0)
-- Musik NICHT stoppen, wenn stopMusic nicht explizit true ist
if data.stopMusic then
-- Stoppe Musik nur wenn explizit angefordert
if currentBooth then
TriggerServerEvent('dj:server:stopMusic', currentBooth.name)
end
end
cb('ok')
end)
RegisterNUICallback('deckStateChanged', function(data, cb)
if Config.Debug then
print(string.format('[DJ System] Deck %s %s: %s',