startAudioScene
START_AUDIO_SCENE0x013A80FC08F6E4F2The GTA V native START_AUDIO_SCENE of the AUDIO namespace, as LS:MP client scripts call it: the global function startAudioScene, in JavaScript and in Lua.
startAudioScene(scene: string): booleanstartAudioScene(scene: string): booleanUsage
JavaScript
const result = startAudioScene(scene);Lua
local result = startAudioScene(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.
Used to prepare a scene where the surrounding sound is muted or a bit changed. This does not play any sound.
List of all usable scene names found in b617d. Sorted alphabetically and identical names removed: https://pastebin.com/MtM9N9CC
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 START_AUDIO_SCENE(const char* scene)- Hash
0x013A80FC08F6E4F2