Aliases
None.Arguments
(RakNetPacket) -> ()
required
The callback to register. Keep the same function object for removal.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Registers a callback for outgoing native sends.
raknet.add_send_hook(callback: (RakNetPacket) -> ()): ()
local function observe(packet)
print(packet.PacketId, packet.Size)
local bytes = packet.AsString
print(#bytes)
end
raknet.add_send_hook(observe)
task.delay(5, function() raknet.remove_send_hook(observe) end)
