loadStream
LOAD_STREAM0x1F1F957154EC51DFThe 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.
loadStream(streamName: string, soundSet: string): booleanloadStream(streamName: string, soundSet: string): booleanUsage
JavaScript
const result = loadStream(streamName, soundSet);Lua
local result = loadStream(streamName, soundSet)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
streamName | string | string | string |
soundSet | 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.
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