network.isblocked

Checks whether a packet type is blocked.

Syntax

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

Aliases

  • raknet.isblocked
  • packets.isblocked
  • RakNet.isblocked

Parameters

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

Returns

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