function Disconnect(packetId)
--[[
[31] = 'NO_FREE_INCOMING_CONNECTIONS'
[32] = 'DISCONNECTION_NOTIFICATION'
[33] = 'CONNECTION_LOST'
[34] = 'CONNECTION_REQUEST_ACCEPTED'
[35] = 'CONNECTION_ATTEMPT_FAILED'
[36] = 'CONNECTION_BANNED'
[37] = 'INVALID_PASSWORD'
]]
local bs = raknetNewBitStream()
raknetBitStreamWriteInt8(bs, packetId)
raknetEmulPacketReceiveBitStream(packetId, bs)
raknetDeleteBitStream(bs)
end
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
if wasKeyPressed(VK_F3) then
Disconnect(33)
end
end
end