Is there a possible way that I can disable the console
(just everything it shows like "user .... used ..." or, "user..... got killed by ..." for normal users?
I don't want everyone on my server to know what just happened or who killed someone.
You can't disable the console, but you can hide those specific messages:
[url]https://github.com/garrynewman/garrysmod/blob/3e138636eb1b0ad6ed785dedf350020755cff5f1/garrysmod/gamemodes/base/gamemode/player.lua#L198[/url]
( There are multiple of these you must override in your gamemode/addon )
[QUOTE=Robotboy655;49184389]You can't disable the console[/QUOTE]
You can do this.
[LUA]hook.Add("PreRender", "c00ln4m3", function()
if gui.IsConsoleVisible() then
gui.HideGameUI()
end
end)[/LUA]
[QUOTE=SexyBeast70;49184617]You can do this.
[LUA]hook.Add("PreRender", "c00ln4m3", function()
if gui.IsConsoleVisible() then
gui.HideGameUI()
end
end)[/LUA][/QUOTE]
That doesn't affect the console.
[QUOTE=YourStalker;49185023]That doesn't affect the console.[/QUOTE]
Try it.
[QUOTE=SexyBeast70;49184617]You can do this.
[LUA]hook.Add("PreRender", "c00ln4m3", function()
if gui.IsConsoleVisible() then
gui.HideGameUI()
end
end)[/LUA][/QUOTE]
Where do I need to add this?
[QUOTE=oOSpeedhacker;49185357]Where do I need to add this?[/QUOTE]
Still haven't tried this but don't add it anywhere, if anything if this does block console then it should be disabled.
So can someone please explain me what i have to do?
Like for dummies please XD
Find what file is printing all that shit and delete the line. [b]Don't[/b] disable console like that other guy wanted you to do.
[QUOTE=YourStalker;49197178]Don't disable console like that other guy [B]wanted you to do.[/B][/QUOTE]
[QUOTE=oOSpeedhacker;49184345]Is there a possible way that I can disable the console
[/QUOTE]
[QUOTE=SexyBeast70;49197469][/QUOTE]
Your code will block the escape menu as well if they try openning console making it impossible for players to disconnect unless they exit the game. That can get your server globally blacklisted.
[QUOTE=YourStalker;49197178]Find what file is printing all that shit and delete the line. [b]Don't[/b] disable console like that other guy wanted you to do.[/QUOTE]
I just want to disable the normal DarkRP echos like "Player X got killed by Player Y"
Or "Player Z spawned Item F"
[QUOTE=oOSpeedhacker;49198692]I just want to disable the normal DarkRP echos like "Player X got killed by Player Y"
Or "Player Z spawned Item F"[/QUOTE]
All I want is to disable these echos
[url]https://www.dropbox.com/s/y7viyi5o7qq3yq7/Unbenannt.png?dl=0[/url]
only admins see that
Sorry, you need to Log In to post a reply to this thread.