_GET_LOADED_STREAM_ID_FROM_CREATION
Creates stream and returns streamId handle to be used with PLAY_STREAM_* natives
Hash
0x0556C784FA056628Runtime name
GetLoadedStreamIdFromCreationNamespaceAUDIO
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_LOADED_STREAM_ID_FROM_CREATION(const char* streamName, const char* soundSet);Parameters
| Name | Type | Description |
|---|---|---|
streamName | const char* | — |
soundSet | const char* | — |
Returns int
Description
Creates stream and returns streamId handle to be used with PLAY_STREAM_* natives
https://github.com/femga/rdr3_discoveries/tree/master/audio/create_stream
Usage
local retval = GetLoadedStreamIdFromCreation(streamName, soundSet)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0556C784FA056628, streamName, soundSet, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetLoadedStreamIdFromCreation(streamName, soundSet);
// by hash
const retval = Citizen.invokeNative('0x0556C784FA056628', streamName, soundSet, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x0556C784FA056628, streamName, soundSet);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.