LOAD_STREAM
Loads the audio stream streamName from soundSet and returns true once it is ready.
Call it in a loop until it returns true, then play it with one of the PLAY_STREAM natives.
Signature
BOOL LOAD_STREAM(const char* streamName, const char* soundSet); // 0x1F1F957154EC51DF b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | streamName | const char* |
| 2 | soundSet | const char* |
Facts
| Name | LOAD_STREAM |
|---|---|
| Hash | 0x1F1F957154EC51DF |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x1F1F957154EC51DF, -- LOAD_STREAM
"text", -- const char* streamName
"text" -- const char* soundSet
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x1F1F957154EC51DF", // LOAD_STREAM
"text", // const char* streamName
"text", // const char* soundSet
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x1F1F957154EC51DF, // LOAD_STREAM
"text", // const char* streamName
"text" // const char* soundSet
);Related AUDIO natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.