Garry's Mod Wiki

DHTML:ConsoleMessage

  DHTML:ConsoleMessage( string msg )

Description

Called when the page inside the DHTML window runs the console.log javascript function. On the x86-64 beta, it's called for all built-in console.* javascript functions.

If DHTML:SetAllowLua is set to true and the message begins with RUNLUA:, the text following RUNLUA: will be executed as code within the Lua environment (this is how Lua is called from DHTML windows).

Arguments

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