Apprenez à supprimer le texte listant les joueurs qui vous entendent grâce à ce tutoriel simple et rapide !
Modification du Fichier
- Se rendre à ce chemin dans son FTP :
garrysmod/gamemodes/darkrp/gamemode/modules/chat
. Si besoin, nous avons aussi un tutoriel sur comment se connecter à son serveur FTP - Ouvrez le Fichier : cl_chatlisteners.lua puis supprimez le code si dessous (entre ligne 46 et 72)
local function chatGetRecipients()
if not currentConfig then return end
receivers = {}
for _, ply in ipairs(player.GetAll()) do
local hidePly = hook.Run("chatHideRecipient", ply)
if not IsValid(ply) or ply == LocalPlayer() or ply:GetNoDraw() or hidePly then continue end
local val = currentConfig.hearFunc(ply, currentChatText)
-- Return nil to disable the chat recipients temporarily.
if val == nil then
receivers = nil
return
elseif val == true then
table.insert(receivers, ply)
end
end
end
- Remplacer le par le code si dessous
function DarkRP.addChatReceiver(prefix, text, hearFunc)
receiverConfigs[prefix] = {
text = text,
hearFunc = hearFunc
}
end
- Relancez votre serveur et la liste sera supprimée.
Si vous avez des soucis, contactez-moi sur le Discord GCA !