local sx, sy = guiGetScreenSize()
window = guiCreateStaticImage(192, 63, 1366, 768, ":freeroam/localplayerblip.png", false) 
guiSetVisible ( window, false ) 
start = getTickCount () 
end_ = getTickCount () + 3500 
  
draw = function ( ) 
    elapsedTime = getTickCount () - start 
    duration =  end_ - start 
    progress = elapsedTime / duration 
    local width, height = interpolateBetween ( 1366, 768, 0,0, 0, 0, progress, "Linear" ) 
    guiSetSize(window, width, height, false) 
	if ( width <= 0 and height <= 0 ) then 
		removeEventHandler ( 'onClientRender', root, draw )
	end 
end 
  
bindKey ( 'n', 'down', function ( ) 
    if guiGetVisible ( window ) == false then 	
		guiSetVisible ( window, true ) 
        addEventHandler ( 'onClientRender', root, draw ) 
    end 
end)