From b0dbf50cac87cfbd9c0cc28b32f67984a4bc08e6 Mon Sep 17 00:00:00 2001 From: tabarra Date: Tue, 4 Apr 2023 22:54:59 -0300 Subject: [PATCH] tweak: small randoms --- fxmanifest.lua | 2 +- resource/cl_main.lua | 6 ++++++ web/public/js/txadmin/players.js | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fxmanifest.lua b/fxmanifest.lua index 6e4321289..744d57bce 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -1,6 +1,6 @@ -- Modifying or rewriting this resource for local use only is strongly discouraged. -- Feel free to open an issue or pull request in our GitHub. --- Official discord server: https://discord.gg/AFAAXzq +-- Official discord server: https://discord.gg/txAdmin author 'Tabarra' description 'Remotely Manage & Monitor your GTA5 FiveM Server' diff --git a/resource/cl_main.lua b/resource/cl_main.lua index 250bc2322..d248aaa9e 100644 --- a/resource/cl_main.lua +++ b/resource/cl_main.lua @@ -100,6 +100,8 @@ CreateThread(function() TriggerEvent('chat:removeSuggestion', '/txAdmin:menu:endSpectate') TriggerEvent('chat:removeSuggestion', '/txAdmin:menu:openPlayersPage') TriggerEvent('chat:removeSuggestion', '/txAdmin:menu:togglePlayerIDs') + TriggerEvent('chat:removeSuggestion', '/txAdmin:menu:specNextPlayer') + TriggerEvent('chat:removeSuggestion', '/txAdmin:menu:specPrevPlayer') --Convars TriggerEvent('chat:removeSuggestion', '/txAdmin-version') @@ -111,6 +113,10 @@ CreateThread(function() TriggerEvent('chat:removeSuggestion', '/txAdmin-checkPlayerJoin') TriggerEvent('chat:removeSuggestion', '/txAdmin-pipeToken') TriggerEvent('chat:removeSuggestion', '/txAdmin-debugMode') + TriggerEvent('chat:removeSuggestion', '/txAdmin-hideDefaultAnnouncement') + TriggerEvent('chat:removeSuggestion', '/txAdmin-hideDefaultDirectMessage') + TriggerEvent('chat:removeSuggestion', '/txAdmin-hideDefaultWarning') + TriggerEvent('chat:removeSuggestion', '/txAdmin-hideDefaultScheduledRestartWarning') TriggerEvent('chat:removeSuggestion', '/txAdminServerMode') --Menu convars diff --git a/web/public/js/txadmin/players.js b/web/public/js/txadmin/players.js index a19460fc2..2c77e9858 100644 --- a/web/public/js/txadmin/players.js +++ b/web/public/js/txadmin/players.js @@ -92,6 +92,7 @@ function setPlayerlistMessage(message) { Array.from(playerlistElement.children).forEach((el) => el.hidden = true); plistMsgElement.textContent = message; plistMsgElement.hidden = false; + plistCountElement.textContent = '--'; } function processPlayerlistEvents(events) {