ResetWorldSounds: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function is used to reset the world sounds to the default setting. ==Syntax== <syntaxhighlight lang="lua"> bool resetWorldSounds() </syntaxhighlight> ===Returns=== Ret...")
 
(Remove obsolete Requirements section)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{New items|3.0140|1.3.1|
This function is used to reset the world sounds to the default setting.
This function is used to reset the world sounds to the default setting.
 
}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 10: Line 11:
===Returns===
===Returns===
Returns true if the world sounds were reset, false otherwise.
Returns true if the world sounds were reset, false otherwise.
==Example==
By this command player can choose to reset world sounds to the default setting if it has been changed before using '''setWorldSoundEnabled'''
<syntaxhighlight lang="lua">
function iWantTheDefaultSounds()
    resetWorldSounds()
end
addCommandHandler('resetSounds' , iWantTheDefaultSounds )
</syntaxhighlight>


==See Also==
==See Also==
{{Client world functions}}
{{Client world functions}}

Latest revision as of 17:04, 7 November 2024

This function is used to reset the world sounds to the default setting.

Syntax

bool resetWorldSounds()

Returns

Returns true if the world sounds were reset, false otherwise.


Example

By this command player can choose to reset world sounds to the default setting if it has been changed before using setWorldSoundEnabled

function iWantTheDefaultSounds()
    resetWorldSounds()
end
addCommandHandler('resetSounds' , iWantTheDefaultSounds )

See Also