The RakNet library gives low-level access to the game’s outgoing network packets. You can watch packets before they are sent, edit their data, block them, and send your own. Interacting with RakNet is risky and can cause disconnects or account action, so use it only when you understand the protocol you are touching. This build hooks the outgoing path only. Inbound receive hooks are not active, so the functions below cover sending, inspecting outgoing packets, and blocking by packet id.

Functions

The packet object

An outgoing packet passed to your on_send hook carries its PacketId, its Data, a :SetData(data) method to rewrite the payload, and a :Block() method to drop it.