IsWorldSoundEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function allows you to check if certain world sound effects have not been disabled by setWorldSoundEnabled ==Syntax== <syntaxhighlight lang="lua"> bool i...")
 
No edit summary
Line 5: Line 5:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool isWorldSoundEnabled( int group, [ int index ] )
bool isWorldSoundEnabled( int group, [ int index = -1 ] )
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 17:17, 19 May 2012

This function allows you to check if certain world sound effects have not been disabled by setWorldSoundEnabled

Syntax

bool isWorldSoundEnabled( int group, [ int index = -1 ] )

Required Arguments

  • group : An integer representing the world sound group

OptionalArguments

  • index : An integer representing an individual sound within the group

Returns

Returns true if the world sounds are enabled, false if they are disabled or invalid values were passed.

See Also