network.getblocked

Lists blocked packet types.

Syntax

Signature
network.getblocked(Direction: string?) -> {number}

Aliases

  • raknet.getblocked
  • packets.getblocked
  • RakNet.getblocked

Parameters

ParameterTypeDescription
Directionstring?Packet direction. Defaults to outgoing.

Returns

TypeDescription
{number}One-based list of blocked packet IDs.

Notes

Direction defaults to outgoing. Incoming aliases are incoming, receive, and received. Outgoing aliases are outgoing, send, and sent.

Example

Luau
for _, Id in network.getblocked("outgoing") do
    print(Id)
end