network.isblocked
Checks whether a packet type is blocked.
Syntax
Signature
network.isblocked(Id: number, Direction: string?) -> booleanAliases
raknet.isblockedpackets.isblockedRakNet.isblocked
Parameters
| Parameter | Type | Description |
|---|---|---|
Id | number | Integer packet ID from 0 through 63. |
Direction | string? | Packet direction. Defaults to outgoing. |
Returns
| Type | Description |
|---|---|
boolean | Whether the packet ID is blocked. |
Notes
Direction defaults to outgoing. Incoming aliases are incoming, receive, and received. Outgoing aliases are outgoing, send, and sent.
Example
Luau
print(network.isblocked(8, "outgoing"))