forked from Simnation/Main
Update main.lua
This commit is contained in:
parent
f6b296d053
commit
5bc2858bce
1 changed files with 3 additions and 3 deletions
|
@ -329,7 +329,7 @@ function PlayMusicAsDJ(title, url, volume)
|
||||||
name = nearestBooth,
|
name = nearestBooth,
|
||||||
coords = Config.DJBooths[nearestBooth].coords
|
coords = Config.DJBooths[nearestBooth].coords
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
|
|
||||||
function StopMusicAsDJ()
|
function StopMusicAsDJ()
|
||||||
if not nearestBooth then
|
if not nearestBooth then
|
||||||
|
@ -348,7 +348,7 @@ function StopMusicAsDJ()
|
||||||
isPlaying = false
|
isPlaying = false
|
||||||
currentSong = nil
|
currentSong = nil
|
||||||
currentBooth = nil
|
currentBooth = nil
|
||||||
}
|
end
|
||||||
|
|
||||||
function SetVolumeAsDJ(volume)
|
function SetVolumeAsDJ(volume)
|
||||||
if not nearestBooth then
|
if not nearestBooth then
|
||||||
|
@ -372,7 +372,7 @@ function SetVolumeAsDJ(volume)
|
||||||
|
|
||||||
-- Lokale Variablen aktualisieren
|
-- Lokale Variablen aktualisieren
|
||||||
currentVolume = volume
|
currentVolume = volume
|
||||||
}
|
end
|
||||||
|
|
||||||
function CalculateRange(volume)
|
function CalculateRange(volume)
|
||||||
if not nearestBooth or not Config.DJBooths[nearestBooth] then return 30.0 end
|
if not nearestBooth or not Config.DJBooths[nearestBooth] then return 30.0 end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue