raknet. is_enabled Synchronous
RakNet.is_enabled
Check whether RakNet packet access is ready for the current game generation. Call it before registering observers or submitting a packet.
Luau
raknet.is_enabled() -> booleanParameters
This function takes no arguments.
Returns
booleantrue when the setting, native transport, and active game generation are all ready.
Availability
RakNet is disabled by default. RakNet and raknet are removed when the setting is off; retained references can still call is_enabled().
Example
Luau
if raknet.is_enabled() then
print("RakNet is ready")
else
print("Enable RakNet and connect to a game first")
end