OnClientSoundStarted

From Multi Theft Auto: Wiki
Revision as of 22:05, 22 February 2012 by OpenIDUser34 (talk | contribs) (Created page with "{{Client_Function}} test example until properly documented <syntaxhighlight lang="lua"> function onSoundStarted ( reason ) if ( source == currentTrack ) then if ( reason == "play" ) then ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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


Client event functions