Audio::setAudioFlag
Possible flag names:
(updated from b393d scripts - MoMadenU - 8/23/15)
'ActivateSwitchWheelAudio'
'AllowAmbientSpeechInSlowMo'
'AllowCutsceneOverScreenFade'
'AllowForceRadioAfterRetune'
'AllowPainAndAmbientSpeechToPlayDuringCutscene'
'AllowPlayerAIOnMission'
'AllowPoliceScannerWhenPlayerHasNoControl'
'AllowRadioDuringSwitch'
'AllowRadioOverScreenFade'
'AllowScoreAndRadio'
'AllowScriptedSpeechInSlowMo'
'AvoidMissionCompleteDelay'
'DisableAbortConversationForDeathAndInjury'
'DisableAbortConversationForRagdoll'
'DisableBarks'
'DisableFlightMusic'
'DisableReplayScriptStreamRecording'
'EnableHeadsetBeep'
'ForceConversationInterrupt'
'ForceSeamlessRadioSwitch'
'ForceSniperAudio'
'FrontendRadioDisabled'
'HoldMissionCompleteWhenPrepared'
'IsDirectorModeActive'
'IsPlayerOnMissionForSpeech'
'ListenerReverbDisabled'
'LoadMPData'
'MobileRadioInGame'
'OnlyAllowScriptTriggerPoliceScanner'
'PlayMenuMusic'
'PoliceScannerDisabled'
'ScriptedConvListenerMaySpeak'
'SpeechDucksScore'
'SuppressPlayerScubaBreathing'
'WantedMusicDisabled'
'WantedMusicOnMission'
-------------------------------
No added flag names between b393d and b573d, including b573d.
#######################################################################
'IsDirectorModeActive' is an audio flag which will allow you to play speech infinitely without any pauses like in Director Mode.
- jedijosh920
-----------------------------------------------------------------------
All flag IDs and hashes:
ID: 01 | Hash: 0x20A7858F
ID: 02 | Hash: 0xA11C2259
ID: 03 | Hash: 0x08DE4700
ID: 04 | Hash: 0x989F652F
ID: 05 | Hash: 0x3C9E76BA
ID: 06 | Hash: 0xA805FEB0
ID: 07 | Hash: 0x4B94EA26
ID: 08 | Hash: 0x803ACD34
ID: 09 | Hash: 0x7C741226
ID: 10 | Hash: 0x31DB9EBD
ID: 11 | Hash: 0xDF386F18
ID: 12 | Hash: 0x669CED42
ID: 13 | Hash: 0x51F22743
ID: 14 | Hash: 0x2052B35C
ID: 15 | Hash: 0x071472DC
ID: 16 | Hash: 0xF9928BCC
ID: 17 | Hash: 0x7ADBDD48
ID: 18 | Hash: 0xA959BA1A
ID: 19 | Hash: 0xBBE89B60
ID: 20 | Hash: 0x87A08871
ID: 21 | Hash: 0xED1057CE
ID: 22 | Hash: 0x1584AD7A
ID: 23 | Hash: 0x8582CFCB
ID: 24 | Hash: 0x7E5E2FB0
ID: 25 | Hash: 0xAE4F72DB
ID: 26 | Hash: 0x5D16D1FA
ID: 27 | Hash: 0x06B2F4B8
ID: 28 | Hash: 0x5D4CDC96
ID: 29 | Hash: 0x8B5A48BA
ID: 30 | Hash: 0x98FBD539
ID: 31 | Hash: 0xD8CB0473
ID: 32 | Hash: 0x5CBB4874
ID: 33 | Hash: 0x2E9F93A9
ID: 34 | Hash: 0xD93BEA86
ID: 35 | Hash: 0x92109B7D
ID: 36 | Hash: 0xB7EC9E4D
ID: 37 | Hash: 0xCABDBB1D
ID: 38 | Hash: 0xB3FD4A52
ID: 39 | Hash: 0x370D94E5
ID: 40 | Hash: 0xA0F7938F
ID: 41 | Hash: 0xCBE1CE81
ID: 42 | Hash: 0xC27F1271
ID: 43 | Hash: 0x9E3258EB
ID: 44 | Hash: 0x551CDA5B
ID: 45 | Hash: 0xCB6D663C
ID: 46 | Hash: 0x7DACE87F
ID: 47 | Hash: 0xF9DE416F
ID: 48 | Hash: 0x882E6E9E
ID: 49 | Hash: 0x16B447E7
ID: 50 | Hash: 0xBD867739
ID: 51 | Hash: 0xA3A58604
ID: 52 | Hash: 0x7E046BBC
ID: 53 | Hash: 0xD95FDB98
ID: 54 | Hash: 0x5842C0ED
ID: 55 | Hash: 0x285FECC6
ID: 56 | Hash: 0x9351AC43
ID: 57 | Hash: 0x50032E75
ID: 58 | Hash: 0xAE6D0D59
ID: 59 | Hash: 0xD6351785
ID: 60 | Hash: 0xD25D71BC
ID: 61 | Hash: 0x1F7F6423
ID: 62 | Hash: 0xE24C3AA6
ID: 63 | Hash: 0xBFFDD2B7
Syntax
mp.game.audio.setAudioFlag(flagName, toggle);
Required Arguments
- flagName: String
- toggle: Boolean
Return value
- Undefined
Example
// todo
See also
- mp.game.audio.playPedRingtone
- mp.game.audio.isPedRingtonePlaying
- mp.game.audio.stopPedRingtone
- mp.game.audio.isMobilePhoneCallOngoing
- mp.game.audio.createNewScriptedConversation
- mp.game.audio.addLineToConversation
- mp.game.audio.addPedToConversation
- mp.game.audio.setMicrophonePosition
- mp.game.audio.startScriptPhoneConversation
- mp.game.audio.preloadScriptPhoneConversation
- mp.game.audio.startScriptConversation
- mp.game.audio.preloadScriptConversation
- mp.game.audio.startPreloadedConversation
- mp.game.audio.getIsPreloadedConversationReady
- mp.game.audio.isScriptedConversationOngoing
- mp.game.audio.isScriptedConversationLoaded
- mp.game.audio.getCurrentScriptedConversationLine
- mp.game.audio.pauseScriptedConversation
- mp.game.audio.restartScriptedConversation
- mp.game.audio.stopScriptedConversation
- mp.game.audio.skipToNextScriptedConversationLine
- mp.game.audio.interruptConversation
- mp.game.audio.interruptConversationAndPause
- mp.game.audio.registerScriptWith
- mp.game.audio.registerScriptWithAudio
- mp.game.audio.unregisterScriptWith
- mp.game.audio.requestMissionBank
- mp.game.audio.requestMissionAudioBank
- mp.game.audio.requestAmbientBank
- mp.game.audio.requestAmbientAudioBank
- mp.game.audio.requestScriptBank
- mp.game.audio.requestScriptAudioBank
- mp.game.audio.hintAmbientBank
- mp.game.audio.hintAmbientAudioBank
- mp.game.audio.hintScriptBank
- mp.game.audio.hintScriptAudioBank
- mp.game.audio.releaseMissionBank
- mp.game.audio.releaseAmbientBank
- mp.game.audio.releaseNamedScriptBank
- mp.game.audio.releaseNamedScriptAudioBank
- mp.game.audio.releaseScriptBank
- mp.game.audio.getSoundId
- mp.game.audio.releaseSoundId
- mp.game.audio.playSound
- mp.game.audio.playSoundFrontend
- mp.game.audio.playDeferredSoundFrontend
- mp.game.audio.playSoundFromEntity
- mp.game.audio.playSoundFromCoord
- mp.game.audio.stopSound
- mp.game.audio.getNetworkIdFromSoundId
- mp.game.audio.getSoundIdFromNetworkId
- mp.game.audio.setVariableOnSound
- mp.game.audio.setVariableOnStream
- mp.game.audio.overrideUnderwaterStream
- mp.game.audio.setVariableOnUnderWaterStream
- mp.game.audio.hasSoundFinished
- mp.game.audio.playPedAmbientSpeechNative
- mp.game.audio.playPedAmbientSpeechAndCloneNative
- mp.game.audio.playPedAmbientSpeechWithVoiceNative
- mp.game.audio.playAmbientSpeechWithVoice
- mp.game.audio.playAmbientSpeechFromPositionNative
- mp.game.audio.playAmbientSpeechAtCoords
- mp.game.audio.overrideTrevorRage
- mp.game.audio.resetTrevorRage
- mp.game.audio.setPlayerAngry
- mp.game.audio.playPain
- mp.game.audio.releaseWeapon
- mp.game.audio.activateSlowmoMode
- mp.game.audio.deactivateSlowmoMode
- mp.game.audio.setAmbientVoiceName
- mp.game.audio.setAmbientVoiceNameHash
- mp.game.audio.getAmbientVoiceNameHash
- mp.game.audio.setPedScream
- mp.game.audio.setPedVoiceGroup
- mp.game.audio.setPedGender
- mp.game.audio.stopCurrentPlayingSpeech
- mp.game.audio.stopCurrentPlayingAmbientSpeech
- mp.game.audio.isAmbientSpeechPlaying
- mp.game.audio.isScriptedSpeechPlaying
- mp.game.audio.isAnySpeechPlaying
- mp.game.audio.canPedSpeak
- mp.game.audio.isPedInCurrentConversation
- mp.game.audio.setPedIsDrunk
- mp.game.audio.playAnimalVocalization
- mp.game.audio.isAnimalVocalizationPlaying
- mp.game.audio.setAnimalMood
- mp.game.audio.isMobilePhoneRadioActive
- mp.game.audio.setMobilePhoneRadioState
- mp.game.audio.getPlayerRadioStationIndex
- mp.game.audio.getPlayerRadioStationName
- mp.game.audio.getRadioStationName
- mp.game.audio.getPlayerRadioStationGenre
- mp.game.audio.isRadioRetuning
- mp.game.audio.isRadioFadedOut
- mp.game.audio.setRadioToStationName
- mp.game.audio.setVehRadioStation
- mp.game.audio.setVehHasRadioOverride
- mp.game.audio.isVehicleRadioEnabled
- mp.game.audio.setEmitterRadioStation
- mp.game.audio.setStaticEmitterEnabled
- mp.game.audio.linkStaticEmitterToEntity
- mp.game.audio.setRadioToStationIndex
- mp.game.audio.setFrontendRadioActive
- mp.game.audio.unlockMissionNewsStory
- mp.game.audio.isMissionNewsStoryUnlocked
- mp.game.audio.getNumberOfPassengerVoiceVariations
- mp.game.audio.getAudibleMusicTrackTextId
- mp.game.audio.playEndCreditsMusic
- mp.game.audio.skipRadioForward
- mp.game.audio.freezeRadioStation
- mp.game.audio.unfreezeRadioStation
- mp.game.audio.setRadioAutoUnfreeze
- mp.game.audio.setInitialPlayerStation
- mp.game.audio.setUserRadioControlEnabled
- mp.game.audio.setRadioTrack
- mp.game.audio.setRadioTrackMix
- mp.game.audio.setVehicleRadioLoud
- mp.game.audio.isVehicleRadioLoud
- mp.game.audio.setMobileRadioEnabledDuringGameplay
- mp.game.audio.doesPlayerVehHaveRadio
- mp.game.audio.isPlayerVehRadioEnable
- mp.game.audio.setVehicleRadioEnabled
- mp.game.audio.setCustomRadioTrackList
- mp.game.audio.clearCustomRadioTrackList
- mp.game.audio.getNumUnlockedRadioStations
- mp.game.audio.findRadioStationIndex
- mp.game.audio.setRadioStationMusicOnly
- mp.game.audio.setRadioFrontendFadeTime
- mp.game.audio.unlockRadioStationTrackList
- mp.game.audio.lockRadioStationTrackList
- mp.game.audio.updateLsur
- mp.game.audio.lockRadioStation
- mp.game.audio.setRadioStationIsVisible
- mp.game.audio.forceRadioTrackListPosition
- mp.game.audio.getCurrentRadioStationHash
- mp.game.audio.setAmbientZoneState
- mp.game.audio.clearAmbientZoneState
- mp.game.audio.setAmbientZoneListState
- mp.game.audio.clearAmbientZoneListState
- mp.game.audio.setAmbientZoneStatePersistent
- mp.game.audio.setAmbientZoneListStatePersistent
- mp.game.audio.isAmbientZoneEnabled
- mp.game.audio.setCutsceneOverride
- mp.game.audio.setCutsceneAudioOverride
- mp.game.audio.setVariableOnCutscene
- mp.game.audio.getPlayerHeadsetSoundAlternate
- mp.game.audio.playPoliceReport
- mp.game.audio.cancelCurrentPoliceReport
- mp.game.audio.blipSiren
- mp.game.audio.overrideVehHorn
- mp.game.audio.isHornActive
- mp.game.audio.setAggressiveHorns
- mp.game.audio.isStreamPlaying
- mp.game.audio.getStreamPlayTime
- mp.game.audio.loadStream
- mp.game.audio.loadStreamWithStartOffset
- mp.game.audio.playStreamFromPed
- mp.game.audio.playStreamFromVehicle
- mp.game.audio.playStreamFromObject
- mp.game.audio.playStreamFrontend
- mp.game.audio.playStreamFromPosition
- mp.game.audio.specialFrontendEqual
- mp.game.audio.stopStream
- mp.game.audio.stopPedSpeaking
- mp.game.audio.disablePedPain
- mp.game.audio.isAmbientSpeechDisabled
- mp.game.audio.setSirenWithNoDriver
- mp.game.audio.setSirenKeepOn
- mp.game.audio.triggerSiren
- mp.game.audio.setHornPermanentlyOn
- mp.game.audio.setHornEnabled
- mp.game.audio.setVehiclePriority
- mp.game.audio.setHornPermanentlyOnTime
- mp.game.audio.useSirenAsHorn
- mp.game.audio.forceVehicleEngine
- mp.game.audio.preloadVehicle
- mp.game.audio.setVehicleStartupRevSound
- mp.game.audio.resetVehicleStartupRevSound
- mp.game.audio.isVehicleAudiblyDamaged
- mp.game.audio.setVehicleEngineDamageFactor
- mp.game.audio.setVehicleBodyDamageFactor
- mp.game.audio.enableVehicleFanbeltDamage
- mp.game.audio.enableVehicleExhaustPops
- mp.game.audio.setVehicleBoostActive
- mp.game.audio.setScriptUpdateDoor
- mp.game.audio.playVehicleDoorOpenSound
- mp.game.audio.playVehicleDoorCloseSound
- mp.game.audio.enableStallWarningSounds
- mp.game.audio.isGameInControlOfMusic
- mp.game.audio.setGpsActive
- mp.game.audio.playMissionComplete
- mp.game.audio.playMissionCompleteAudio
- mp.game.audio.isMissionCompletePlaying
- mp.game.audio.isMissionCompleteReadyForUi
- mp.game.audio.blockDeathJingle
- mp.game.audio.startScene
- mp.game.audio.startAudioScene
- mp.game.audio.stopScene
- mp.game.audio.stopAudioScene
- mp.game.audio.stopScenes
- mp.game.audio.isSceneActive
- mp.game.audio.isAudioSceneActive
- mp.game.audio.setSceneVariable
- mp.game.audio.setAudioSceneVariable
- mp.game.audio.setScriptCleanupTime
- mp.game.audio.addEntityToMixGroup
- mp.game.audio.removeEntityFromMixGroup
- mp.game.audio.isScriptedMusicPlaying
- mp.game.audio.isScriptedMusicPlaying2
- mp.game.audio.prepareMusicEvent
- mp.game.audio.cancelMusicEvent
- mp.game.audio.triggerMusicEvent
- mp.game.audio.isMusicOneshotPlaying
- mp.game.audio.getMusicPlaytime
- mp.game.audio.recordBrokenGlass
- mp.game.audio.clearAllBrokenGlass
- mp.game.audio.forcePedPanicWalla
- mp.game.audio.prepareAlarm
- mp.game.audio.startAlarm
- mp.game.audio.stopAlarm
- mp.game.audio.stopAllAlarms
- mp.game.audio.isAlarmPlaying
- mp.game.audio.getVehicleDefaultHorn
- mp.game.audio.getVehicleDefaultHornIgnoreMods
- mp.game.audio.resetPedFlags
- mp.game.audio.resetPedAudioFlags
- mp.game.audio.setPedFootstepLoud
- mp.game.audio.setPedFootstepQuiet
- mp.game.audio.overridePlayerGroundMaterial
- mp.game.audio.overrideMicrophoneSettings
- mp.game.audio.freezeMicrophone
- mp.game.audio.distantCopCarSirens
- mp.game.audio.setFlag
- mp.game.audio.setAudioFlag
- mp.game.audio.prepareSynchronizedEvent
- mp.game.audio.prepareSynchronizedAudioEvent
- mp.game.audio.prepareSynchronizedEventForScene
- mp.game.audio.prepareSynchronizedAudioEventForScene
- mp.game.audio.playSynchronizedEvent
- mp.game.audio.playSynchronizedAudioEvent
- mp.game.audio.stopSynchronizedEvent
- mp.game.audio.stopSynchronizedAudioEvent
- mp.game.audio.setSynchronizedEventPositionThisFrame
- mp.game.audio.setSynchronizedAudioEventPositionThisFrame
- mp.game.audio.setSpecialEffectMode
- mp.game.audio.setPortalSettingsOverride
- mp.game.audio.removePortalSettingsOverride
- mp.game.audio.getMusicVolSlider
- mp.game.audio.requestTennisBanks
- mp.game.audio.unrequestTennisBanks
- mp.game.audio.stopCutscene
- mp.game.audio.hasMultiplayerDataLoaded
- mp.game.audio.hasMultiplayerDataUnloaded
- mp.game.audio.getVehicleDefaultHornVariation
- mp.game.audio.setVehicleHornVariation
- mp.game.audio.restoreCategoryVariables
- mp.game.audio.getCategoryVariable
- mp.game.audio.setCategoryVariable
- mp.game.audio.copyCategoryVariables
- mp.game.audio.playSoundHash