---
title: "RakNetPacket.Block"
description: "Blocks the current native send and skips subsequent send callbacks."
---

```lua
packet:Block(): ()
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

This function returns no values.

Valid only synchronously within a registered send callback. Do not retain the packet userdata or yield. Returning false from the callback does not block a send.

**Related types:** [RakNet types & behavior](/reference/raknet/types).

---

## Example

```lua
local function blockDuringTest(packet)
    packet:Block()
end
-- Register only while testing a deliberate blocked-send scenario.
raknet.add_send_hook(blockDuringTest)
raknet.remove_send_hook(blockDuringTest)
```
