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.

Syntax
Luau
raknet.is_enabled() -> boolean

Parameters

This function takes no arguments.

Returns

boolean

true 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

Example
Luau
if raknet.is_enabled() then
    print("RakNet is ready")
else
    print("Enable RakNet and connect to a game first")
end
Kawaii documentation