OnClientSoundStarted
Jump to navigation
Jump to search
test example until properly documented
function onSoundStarted ( reason ) if ( source == currentTrack ) then if ( reason == "play" ) then outputChatBox ( "sound started" ) elseif ( reason == "resumed" ) then outputChatBox ( "sound resumed" ) end end end addEventHandler ( "onClientSoundStarted", getRootElement(), onSoundStarted )
See Also
Client sound events
- onClientSoundBeat
- onClientSoundChangedMeta
- onClientSoundFinishedDownload
- onClientSoundStarted
- onClientSoundStopped
- onClientSoundStream
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled