Skip to main content
Stops a hook you added with raknet.add_send_hook from running.
RakNet is the connection Roblox uses to talk to the server over the internet.
It does the same job as RemoteEvent and RemoteFunction, just with raw packets rather than ready-made remotes.
Pass the exact same function you gave raknet.add_send_hook. That hook stops running on outgoing packets. Any other registered hooks keep running.

Parameters

Returns

void

Example

Run a send hook, then detach it with the same stored reference.
Always clean up hooks when script unloads to prevent performance degradation.