RedM Natives

MUMBLE_IS_CONNECTED

This native will return true if the user succesfully connected to the voice server.

Hash0xB816370A
Runtime nameMumbleIsConnected
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

BOOL MUMBLE_IS_CONNECTED();

Returns BOOL — True if the player is connected to a mumble server.

Description

Cfx.re native reference

This native will return true if the user succesfully connected to the voice server. If the user disabled the voice-chat setting it will return false.

Usage

Lua
local retval = MumbleIsConnected()

-- always works, by hash
local retval = Citizen.InvokeNative(0xb816370a, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = MumbleIsConnected();

// by hash
const retval = Citizen.invokeNative('0xb816370a', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xb816370a);

Sources

Cfx.re native reference

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