MUMBLE_IS_CONNECTED
This native will return true if the user succesfully connected to the voice server.
Signature
BOOL MUMBLE_IS_CONNECTED();Returns BOOL — True if the player is connected to a mumble server.
Description
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
local retval = MumbleIsConnected()
-- always works, by hash
local retval = Citizen.InvokeNative(0xb816370a, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = MumbleIsConnected();
// by hash
const retval = Citizen.invokeNative('0xb816370a', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xb816370a);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.