forked from Simnation/Main
Merge branch 'master' of https://git.simnation-rp.de/Simnation/Main
This commit is contained in:
commit
224de93e20
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue