isAudioSceneActive
IS_AUDIO_SCENE_ACTIVE0xB65B60556E2A9225The 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.
isAudioSceneActive(scene: string): booleanisAudioSceneActive(scene: string): booleanUsage
JavaScript
const result = isAudioSceneActive(scene);Lua
local result = isAudioSceneActive(scene)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scene | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of audio scene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/audioSceneNames.json
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL IS_AUDIO_SCENE_ACTIVE(const char* scene)- Hash
0xB65B60556E2A9225