RedM Natives

CREATE_AUDIO_SUBMIX

Creates an audio submix with the specified name, or gets the existing audio submix by that name.

Hash0x658D2BC8
Runtime nameCreateAudioSubmix
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

int CREATE_AUDIO_SUBMIX(char* name);

Parameters

NameTypeDescription
namechar*

The audio submix name.

Returns int — A submix ID, or -1 if the submix could not be created.

Description

Cfx.re native reference

Creates an audio submix with the specified name, or gets the existing audio submix by that name.

Usage

Lua
local retval = CreateAudioSubmix(name)

-- always works, by hash
local retval = Citizen.InvokeNative(0x658d2bc8, name, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreateAudioSubmix(name);

// by hash
const retval = Citizen.invokeNative('0x658d2bc8', name, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x658d2bc8, name);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.