forked from Simnation/Main
ed
This commit is contained in:
parent
0796557bb6
commit
585ee069c2
2 changed files with 64 additions and 9 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue