setAmbientSoundEnabled | Multi Theft Auto: Wiki Skip to content

setAmbientSoundEnabled

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function allows you to disable some background sound effects. See also: setWorldSoundEnabled.

Syntax

setAmbientSoundEnabled ( )

Code Examples

client

This example turns off the ambient water and gunfire sounds:

setAmbientSoundEnabled( "general", false )
setAmbientSoundEnabled( "gunfire", false )

See Also

World Functions