RedM Natives

MUMBLE_IS_PLAYER_MUTED

Checks if the player is currently muted

Hash0x1D5D50C2
Runtime nameMumbleIsPlayerMuted
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL MUMBLE_IS_PLAYER_MUTED(int playerSrc);

Parameters

NameTypeDescription
playerSrcint

The player to get the mute state for

Returns BOOL — Whether or not the player is muted

Description

Cfx.re native reference

Checks if the player is currently muted

Usage

Lua
local retval = MumbleIsPlayerMuted(playerSrc)

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

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

Sources

Cfx.re native reference

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