- Dokumentacja
- Funkcje klienta
- stopSound
Funkcja
stopSound
Zatrzymuje dźwięk i usuwa go. Wywołuje zdarzenie onClientSoundStopped z powodem "destroyed".
Składnia
bool stopSound(sound theSound)Argumenty
theSoundsound- Dźwięk.
Zwraca
true przy powodzeniu.
Przykład
local horn = playSound("audio/horn.wav")
setTimer(function()
if isElement(horn) then stopSound(horn) end
end, 2000, 1)