I am currently trying to make the chat box disappear, the problem is when I click the chatbox key (Y for me) I can't seem to open the console as well and then I have to reload the game
my code:
[CODE]
hook.Add( "HUDShouldDraw", "HideHUD", function( name )
if ( name == "CHudChat" ) then
return false
end
end )[/CODE]
NOTE:
The code is in cl_init.lua
[QUOTE=Guysudai1;52604429]I am currently trying to make the chat box disappear, the problem is when I click the chatbox key (Y for me) I can't seem to open the console as well and then I have to reload the game
my code:
[CODE]
hook.Add( "HUDShouldDraw", "HideHUD", function( name )
if ( name == "CHudChat" ) then
return false
end
end )[/CODE]
NOTE:
The code is in cl_init.lua[/QUOTE]
Just cause it isn't drawing doesn't mean it isn't there. You will also need to use the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/StartChat]GM:StartChat[/url] hook to prevent it from being opened.
Oh ok thanks!
Sorry, you need to Log In to post a reply to this thread.