Hello,
I was wondering if there was a way where whenever you type a command such as "!ban lemon", it disappears and does the action?
Thank you.
garrysmod/data/ulx/config.txt
Find the line that says
[code]
ulx logEcho 1
[/code]
And make it
[code]
ulx logEcho 0
[/code]
[URL="http://facepunch.com/showthread.php?t=723378"]Thanks[/URL] [URL="http://forums.ulyssesmod.net/index.php?topic=5588.0"]Google[/URL]
Add this to lua/autorun/client
[CODE]local function OnPlayerChat( ply, strText, bTeamOnly, bPlayerIsDead )
if strText[1] == "!" then
return true
end
end
hook.Add( "OnPlayerChat", "testhook", OnPlayerChat )[/CODE]
Any text messages w/ "!" at the beginning will be hidden but the command will still go through.
This is a catch-all method of doing it. You can add a check to see if its a ULX command instead of simply hiding all messages that have '!'.
I believe we still display the message for most chat commands by default to prevent any conflicts with other addons that use chat commands.
[url=https://github.com/Nayruden/Ulysses/issues/428#issuecomment-83636433]As I posted here[/url], there is a one-liner change to ULib that can hide all commands by default, or you can dig through the code and hide individual commands if you like.
I'd suggest using the console instead. You could also use xgui.
-snip-
Sorry, you need to Log In to post a reply to this thread.