network.unblock
Unblocks a packet type.
Syntax
Signature
network.unblock(Id: number, Direction: string?) -> booleanAliases
raknet.unblockpackets.unblockRakNet.unblock
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 blocking setting was accepted. |
Notes
Direction defaults to outgoing. Incoming aliases are incoming, receive, and received. Outgoing aliases are outgoing, send, and sent.
Example
Luau
print(network.unblock(8, "outgoing"))