network.unblock

Unblocks a packet type.

Syntax

Signature
network.unblock(Id: number, Direction: string?) -> boolean

Aliases

  • raknet.unblock
  • packets.unblock
  • RakNet.unblock

Parameters

ParameterTypeDescription
IdnumberInteger packet ID from 0 through 63.
Directionstring?Packet direction. Defaults to outgoing.

Returns

TypeDescription
booleanWhether 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"))