ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientSoundStopped

Event

onClientSoundStopped

ClientSound (client)Identical to MTA:SA

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)

See also