AudioClient

startAudioScene

START_AUDIO_SCENE0x013A80FC08F6E4F2

The 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.

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

Usage

JavaScript
const result = startAudioScene(scene);
Lua
local result = startAudioScene(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.

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

Open in the interactive natives reference