StopSound: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Stops any created sound.
Stops the sound playback for specified [[sound]] element.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool stopSound ( element sound )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool stopSound ( element theSound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' the sound you want to stop.
*'''theSound:''' The [[sound]] element you want to stop playing.


===Returns===
===Returns===
Returns ''true'' if the sound was successfully stopped, ''false'' otherwise.
Returns ''true'' if the sound was successfully stopped, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 20:48, 26 December 2008