mirror of
https://github.com/gmod-integration/lua.git
synced 2025-07-07 04:14:30 +00:00
feat: implement console live exporter with custom print function
This commit is contained in:
parent
e468b2fa96
commit
e9e435eb13
|
@ -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
|
Loading…
Reference in New Issue
Block a user