Garry's Mod Wiki

Revision Difference

DHTML:ConsoleMessage#553919

<function name="ConsoleMessage" parent="DHTML" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description>Called when the page inside the <page>DHTML</page> window runs the `console.log` javascript function. On the x86-64 beta, it's called for all built-in `console.*` javascript functions. If <page>DHTML:SetAllowLua</page> 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).</description> <realm>Client and Menu</realm> <file line="66-L97">lua/vgui/dhtml.lua</file> <args> <arg name="msg" type="string">The message to be logged (or Lua code to be executed; see above).</arg> </args> </function>