Skip to main content

Audio::setStaticEmitterEnabled

Example: AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_01_STAGE', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_02_MAIN_ROOM', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_03_BACK_ROOM', false);

This turns off surrounding sounds not connected directly to peds.

Syntax

```js mp.game.audio.setStaticEmitterEnabled(emitterName, toggle); ```

Required Arguments

  • emitterName: String
  • toggle: Boolean

Return value

  • Undefined

Example

```js // todo ```

See also