IsAmbientSoundEnabled

From Multi Theft Auto: Wiki
Revision as of 21:26, 30 July 2011 by Ccw (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function allows you to check if some background sound effects are enabled. ==Syntax== <syntaxhighlight lang="lua"> bool isAmbientSoundEnabled( string ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function allows you to check if some background sound effects are enabled.

Syntax

bool isAmbientSoundEnabled( string type )

Required Arguments

  • type: The type of ambient sound to test. Can be either "gunfire" or "general".

Returns

Returns true if the ambient sound is enabled, false if it is disabled or invalid values were passed.

See Also