diff --git a/lua/gmod_integration/modules/console_live_exporter/sv_main.lua b/lua/gmod_integration/modules/console_live_exporter/sv_main.lua new file mode 100644 index 0000000..64cecb5 --- /dev/null +++ b/lua/gmod_integration/modules/console_live_exporter/sv_main.lua @@ -0,0 +1,10 @@ +local oldPrint = print +function print(...) + local msg = table.concat({...}, " ") + if gmInte.enableConsoleLiveExporter then + gmInte.websocket:send("console_live_exporter", { + data = msg + }, nil, true) + end + oldPrint(...) +end \ No newline at end of file