network.gettypes

Lists known packet types.

Syntax

Signature
network.gettypes() -> table

Aliases

  • raknet.gettypes
  • packets.gettypes
  • RakNet.gettypes

Parameters

This function takes no parameters.

Returns

TypeDescription
tableNumeric packet ID to exact packet type name.

Notes

IDs can include zero and can have gaps. Iterate with pairs or generalized table iteration rather than ipairs.

Example

Luau
for Id, Name in network.gettypes() do
    print(Id, Name)
end