CREATE_AUDIO_SUBMIX
Creates an audio submix with the specified name, or gets the existing audio submix by that name.
Signature
int CREATE_AUDIO_SUBMIX(char* name);Parameters
| Name | Type | Description |
|---|---|---|
name | char* | The audio submix name. |
Returns int — A submix ID, or -1 if the submix could not be created.
Description
Creates an audio submix with the specified name, or gets the existing audio submix by that name.
Usage
local retval = CreateAudioSubmix(name)
-- always works, by hash
local retval = Citizen.InvokeNative(0x658d2bc8, name, Citizen.ResultAsInteger())JavaScript and C#
const retval = CreateAudioSubmix(name);
// by hash
const retval = Citizen.invokeNative('0x658d2bc8', name, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x658d2bc8, name);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.