diff --git a/resources/[Developer]/[Max]/Duck_new_wartung/config.lua b/resources/[Developer]/[Max]/Duck_new_wartung/config.lua index 4ce75b996..006de9992 100644 --- a/resources/[Developer]/[Max]/Duck_new_wartung/config.lua +++ b/resources/[Developer]/[Max]/Duck_new_wartung/config.lua @@ -1,5 +1,5 @@ Config = { - DiscordWebhook = "https://discord.com/api/webhooks/1383151445532086442/02u3NBPWov8pfKj8B-F-lyr-BH54hPgdCgROUqe6aZmVxLDChYCSSbyGkC7YPUtUYWzi", + DiscordWebhook = "https://discord.com/api/webhooks/1404915861231374418/RPfU1CQq9OIJ3H93kNVnT8-4Y2zzecofvmvY2qWW6U_29aQB-j-y2iVvMMT3jjP61107", WartungStartNachricht = "🔧 **Wartungsarbeiten** 🔧\nDer Server wird jetzt gewartet! >> Connect solange nicht Möglich", WartungEndeNachricht = "✅ **Wartung abgeschlossen** ✅\nDer Server ist wieder verfügbar! Viel Spaß >> Danke für euer verständnis!", ErlaubteRolle = "admin" diff --git a/resources/[Developer]/[Max]/ticketpanel_qb/client/cl_main.lua b/resources/[Developer]/[Max]/ticketpanel_qb/client/cl_main.lua index 43784e973..3f8bcfc4d 100644 --- a/resources/[Developer]/[Max]/ticketpanel_qb/client/cl_main.lua +++ b/resources/[Developer]/[Max]/ticketpanel_qb/client/cl_main.lua @@ -75,7 +75,7 @@ RegisterNetEvent('rlo_ticketpanel:client:syncRequest', function(activeTickets, n if Config.Sound.Enabled then print('Sound is enabled, trying to play sound...') - -- Prüfe, ob xSound gestartet ist + -- Prüfe, ob xSound gestartet ist local xsoundState = GetResourceState('xsound') print('xSound resource state: ' .. xsoundState) @@ -86,15 +86,15 @@ RegisterNetEvent('rlo_ticketpanel:client:syncRequest', function(activeTickets, n print('Sound URL: ' .. Config.Sound.URL) print('Sound Volume: ' .. Config.Sound.Volume) - -- Eindeutige Sound-ID für jede Benachrichtigung + -- Eindeutige Sound-ID für jede Benachrichtigung local soundId = 'ticket_notify_' .. math.random(100000, 999999) - -- Direkter Aufruf ohne pcall für bessere Fehlermeldungen + -- Direkter Aufruf ohne pcall für bessere Fehlermeldungen print('Trying to play sound with direct method...') exports['xsound']:PlayUrl(soundId, Config.Sound.URL, Config.Sound.Volume, false) -- Sound nach 10 Sekunden stoppen - Citizen.SetTimeout(1500, function() + Citizen.SetTimeout(2000, function() if exports['xsound']:soundExists(soundId) then exports['xsound']:Destroy(soundId) print('Sound stopped after 10 seconds timeout')