RakNet
RakNet.remove_receive_hook
Removes a receive hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Removes a receive hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
RakNet.remove_receive_hook(callback: function)
raknet.remove_receive_hooklocal function onReceive(packet)
print(packet.Size)
end
if raknet.is_enabled then
raknet.add_receive_hook(onReceive)
raknet.remove_receive_hook(onReceive)
end