Garry's Mod Wiki


  DHTML:ConsoleMessage( string msg )


Called when the page inside the DHTML window runs console.log. This can also be called within the Lua environment to emulate console.log. If the contained message begins with RUNLUA: the following text will be executed as code within the Lua environment (this is how Lua is called from DHTML windows).


1 string msg
The message to be logged (or Lua code to be executed; see above).