Rubat
Rubat
Duplicate of https://github.com/Facepunch/garrysmod-issues/issues/5001
Not playing the game/server is not a solution. And filling people's harddrives is not a "harmless freeze".
Considering the usual usage of this function, the default argument will simply not work. E.g. https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dcolorbutton.lua#L6
Have you tried the simplest thing of not running any mods before posting here?
 Maybe this is a bit cleaner? ```if ( isstring( key ) && key != key:Trim() ) then key = "[\"" .. key .. "\"]" end```
A fair point. I am not sure what to do about it, either way it's gonna be either confusing or just increase amount of irrelevant symbols on each line.
Do not use NW2Vars. They were made available for testing, and should only be used for such.
What makes you think the hook should only get called when user has focused a text area/panel?
This is due the client not sending their pressed keys to the server while a keyboard input enabled panel is open. This is obvious intended behavior. The "did we just...
EyePos() is supposed to be used in rendering hooks. For other uses, use Player:EyePos() or whatever.