RedM Natives

MUMBLE_SET_PLAYER_MUTED

Mutes or unmutes the specified player

Hash0xCC6C2EB1
Runtime nameMumbleSetPlayerMuted
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void MUMBLE_SET_PLAYER_MUTED(int playerSrc, bool toggle);

Parameters

NameTypeDescription
playerSrcint

The player to set the mute state of

togglebool

Whether to mute or unmute the player

Returns void

Description

Cfx.re native reference

Mutes or unmutes the specified player

Usage

Lua
MumbleSetPlayerMuted(playerSrc, toggle)

-- always works, by hash
Citizen.InvokeNative(0xcc6c2eb1, playerSrc, toggle)
JavaScript and C#
JavaScript
MumbleSetPlayerMuted(playerSrc, toggle);

// by hash
Citizen.invokeNative('0xcc6c2eb1', playerSrc, toggle);
C#
Function.Call((Hash)0xcc6c2eb1, playerSrc, toggle);

Sources

Cfx.re native reference

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