You must return the camera to the local player using setCameraTarget.
local visible = true
setCameraMatrix ( 117.5101852417, 163.30557250977, 5579.2065429688, 116.48139190674, 156.49519348145, 5579.0087890625 )
local progress = 0.0;
function aa ( )
if ( progress < 1 ) then
progress = progress + 0.002; -- increase to move the camera faster
end
local x, y, z = interpolateBetween ( 117.5101852417, 163.30557250977, 5579.2065429688, 120.94383239746,162.29713439941,5579.5678710938, progress, "Linear" );
setCameraMatrix ( x, y, z, 116.48139190674, 156.49519348145, 5579.0087890625 )
end
addEventHandler ( "onClientRender", root, aa )
bindKey ( "F6", "down",
function ( )
if ( visible ) then
removeEventHandler ( "onClientRender", root, aa )
setCameraTarget ( localPlayer )
visible = false
else
addEventHandler ( "onClientRender", root, aa )
visible = true
end
end
)