Description
Called when a CHLTVClient sends a net message to the server.
Arguments
2bf_read bufferthe buffer containing the message content
Example
util.AddNetworkString(
"Example")
hook.
Add(
"HolyLib:OnSourceTVNetMessage",
"Example",
function(client, bf)
local name = util.NetworkIDToString(bf:ReadShort())) print(name,
bf:
ReadString())
end)
net.
Start(
"Example")
net.WriteString(
"Hello World from CHLTVClient");
net.SendToServer()