function onSendPacket(ID, BS)
if(ID == 220) then
raknetBitStreamIgnoreBits(BS, 16)
if(raknetBitStreamReadInt8(BS) == 66) then
if(raknetBitStreamReadInt8(BS) == 64) then return false end
end
end
end
function onReceivePacket(ID, BS)
if(ID == 220) then
raknetBitStreamIgnoreBits(BS, 8)
if(raknetBitStreamReadInt8(BS) == 17) then
raknetBitStreamIgnoreBits(BS, 32)
if(raknetBitStreamReadString(BS, raknetBitStreamReadInt32(BS)):match("window%.executeEvent%('event%.setActiveView', '%[\"InteractionMenu\"%]'%);")) then
local BITSTREAM = raknetNewBitStream()
raknetBitStreamWriteInt8(BITSTREAM, 220)
raknetBitStreamWriteInt8(BITSTREAM, 24)
raknetBitStreamWriteInt8(BITSTREAM, 1)
raknetBitStreamWriteInt8(BITSTREAM, 0)
raknetBitStreamWriteInt8(BITSTREAM, 0)
raknetBitStreamWriteInt8(BITSTREAM, 0)
raknetBitStreamWriteInt8(BITSTREAM, 0)
raknetSendBitStreamEx(BITSTREAM, 1, 7, 1)
raknetDeleteBitStream(BITSTREAM)
return false
end
end
end
end