PacketId and Data, rewrite the payload with packet:SetData(...), or drop it entirely with packet:Block().
Parameters
function
required
Called with each outgoing packet.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook outgoing packets.
raknet.on_send(hook: (packet: RakNetPacket) -> ()) -> ()
PacketId and Data, rewrite the payload with packet:SetData(...), or drop it entirely with packet:Block().
raknet.on_send(function(packet)
if packet.PacketId == 0x8A then
packet:Block()
end
end)