AudioClient

isAudioSceneActive

IS_AUDIO_SCENE_ACTIVE0xB65B60556E2A9225

The GTA V native IS_AUDIO_SCENE_ACTIVE of the AUDIO namespace, as LS:MP client scripts call it: the global function isAudioSceneActive, in JavaScript and in Lua.

SignatureJavaScript
isAudioSceneActive(scene: string): boolean
SignatureLua
isAudioSceneActive(scene: string): boolean

Usage

JavaScript
const result = isAudioSceneActive(scene);
Lua
local result = isAudioSceneActive(scene)

Parameters

ParameterTypeJavaScriptLua
scenestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Audio AUDIO
In the game
BOOL IS_AUDIO_SCENE_ACTIVE(const char* scene)
Hash
0xB65B60556E2A9225

Open in the interactive natives reference