Hey everyone , hope you all doing well
okay so, What even is this script ?
so , with build 4837 for fxserver , there is a new native, to mute players in game, thanks to @AvarianKnight ,and it will work on any VOIP that is in game (like : mumble-voip and pma-voice )
I just wrote this and thought why not release it , maybe somebody else could use it too !
so , i modified it and added a little config file to it:
features :
Works on every mumble based server (mumble-voip / PMA-voice and …)
Command for mute/unmute
Command can be used from console too
Also there is a menu for mute/unmute
Log System
ESX Permission support
QBCore permission support
Identifier permission support
Multi language support
Very light on server and client
YOU NEED TO BE ON THE BUILD NUMBER 4837 OR HIGHER FOR THIS TO WORK !!
Hope you enjoy
Github : GitHub - ali-exacute/mumble-mute: Mute online players from talking in game for MumbleVOIP | FIveM
my other scripts :
Second Hand Vehicle Remastered (v2)
Advanced Spectate
ESX Advanced Needs
ESX Advanced Job System
Advanced Kit System
ESX Adminplus
3 Likes
Hey!
Man I Love you! This is exactly what I‘ve been waiting for and didn‘t knew how to solve! Thanks A LOT.
So what happens if a player rebinds their talk key from N?
while true do
Wait(5)
if playersData[localServerId] then
if playersData[localServerId].muted then
if Config.showMutedOnScreen then
draw2DText(_lang('player_canttalk'), 0.085, 0.82) -- message, x, y (change it if you wanna change the message location on screen)
end
if Config.disableTalkKeyForMutedPlayers then
DisableControlAction(0, 249, true)
end
else
Wait(100)
end
else
Wait(100)
end
end
Isn’t this implemented into pma-voice? Nice work either way
Coder
October 29, 2021, 4:47am
5
can this be easily converted to use ace/discord perms?
as far as i know , it will still work the same way no matter the keybind change
not sure
i knew it will be implemented either way
just wanted to release something standalone to also be good for ESX and QBCore servers without any need to code anything
yeah you can just simply edit havePermission function
MumbleSetPlayerMuted(playerId, false)
if playersData[playerId] then
playersData[playerId].muted = false
TriggerClientEvent('mumble-mute:client:update', -1, playersData)
showNotification(source, _lang('player_unmuted_admin', { ['$name'] = playersData[playerId].playerName, ['$id'] = playerId }))
showNotification(playerId, _lang('player_unmuted_client'))
log(_lang('log_unmuted', { ['$name'] = playersData[playerId].playerName, ['$id'] = playerId, ['$adminname'] = GetPlayerName(source), ['$adminid'] = source }))
end
end
function havePermission(playerId)
if playerId == 0 then -- console have permission to mute
return true
end
local havePerm = false
if ESX then
SetTimeout(5000, function()
ESXTimeout[playerId] = true
Coder
October 30, 2021, 3:53pm
9
so change that to like "havePermission(ace)?
1 Like
Is it possible to deafen a player when dead, not mute
i think you can remove the player from mumble audio channel
not with this script tho