Garry's Mod Wiki

Revision Difference

DHTML:ConsoleMessage#549796

<function name="ConsoleMessage" parent="DHTML" type="panelfunc"> <ispanel>yes</ispanel> <description>Called when the page inside the <page>DHTML</page> 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).</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="msg" type="string">The message to be logged (or Lua code to be executed; see above).</arg> </args> </function>