AudioClient

loadStream

LOAD_STREAM0x1F1F957154EC51DF

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

SignatureJavaScript
loadStream(streamName: string, soundSet: string): boolean
SignatureLua
loadStream(streamName: string, soundSet: string): boolean

Usage

JavaScript
const result = loadStream(streamName, soundSet);
Lua
local result = loadStream(streamName, soundSet)

Parameters

ParameterTypeJavaScriptLua
streamNamestringstringstring
soundSetstringstringstring

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.

Example:

loadStream("CAR_STEAL_1_PASSBY", "CAR_STEAL_1_SOUNDSET");

All found occurrences in the b678d decompiled scripts: https://pastebin.com/3rma6w5w

Stream names often ends with "_MASTER", "_SMALL" or "_STREAM". Also "_IN", "_OUT" and numbers.

soundSet is often set to 0 in the scripts. These are common to end the soundSets: "_SOUNDS", "_SOUNDSET" and numbers.

Full list of audio / sound names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/soundNames.json

Reference

Namespace
Audio AUDIO
In the game
BOOL LOAD_STREAM(const char* streamName, const char* soundSet)
Hash
0x1F1F957154EC51DF

Open in the interactive natives reference