VINDICTA.TOP
RakNet · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

raknet.add_send_hook

Registers a callback that runs before a RakNetPacket is sent.

function raknet.add_send_hook(callbackcallback(packet: RakNetPacket) -> nilThe callback function to register.: (packet: RakNetPacket) -> nil): ()

Usage

Print outgoing packet metadata
raknet.add_send_hook(function(packet)
    print("ID:", packet.PacketId)
    print("Size:", packet.Size)
    print("Priority:", packet.Priority)
    print("Reliability:", packet.Reliability)
    print("Ordering Channel:", packet.OrderingChannel)
end)