network.gettypes
Lists known packet types.
Syntax
Signature
network.gettypes() -> tableAliases
raknet.gettypespackets.gettypesRakNet.gettypes
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
table | Numeric 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