Passing extra args through net.readStream callback
🌙 Lua•Updated 2 days ago•0 views
The callback signature is fixed - you can't inject args. Instead capture them in an upvalue/closure around the callback, or use hook.runRemote/hook.add("remote"…
Can I pass other vars to the net.readStream callback
The callback signature is fixed - you can't inject args. Instead capture them in an upvalue/closure around the callback, or use hook.runRemote/hook.add("remote") which passes the sender and payload table.