feat: implement console live exporter with custom print function

This commit is contained in:
Linventif 2025-07-01 01:13:49 +00:00
parent e468b2fa96
commit e9e435eb13

View File

@ -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