- Documentation
- Client events
- onClientSoundStopped
Event
onClientSoundStopped
A sound stopped playing (it ended, was stopped or was destroyed).
Handler
addEventHandler("onClientSoundStopped", root, function(reason) ... end)Parameters
reasonstring"finished"(it ended) or"destroyed"(stopped or destroyed).
Source
source is the sound.
Example
local radio = playSound("muzyka/intro.mp3")
addEventHandler("onClientSoundStopped", radio, function(reason)
if reason == "finished" then outputChatBox("Koniec utworu") end
end)