Removes a receive hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
Removes a receive hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
Remove a receive hook by passing the same callback closure that was registered.
local function onReceive(packet) print(packet.Size)endif raknet.is_enabled then raknet.add_receive_hook(onReceive) raknet.remove_receive_hook(onReceive)end
⌘I
Assistant
Responses are generated using AI and may contain mistakes.