Gui wont show

Ok, first i want to say im a begginer and there are alot of stuff that aren’t known to me,
and English isn’t my main language. so sorry if im having trouble explaining myself.
Alright, so thats my script :

var labelText : String = "Press E to read note";
var myGameobject : GameObject;
private var isActive : boolean = false;
var noteTexture : Texture2D;
var noteIsOpen = false;
function Start()
{
	
}
 
function Update()
{
         isActive = false;
         var hit : RaycastHit;
         var ray : Ray = Camera.main.ScreenPointToRay(Input.mousePosition);
         if (myGameobject.collider.Raycast (ray, hit,Mathf.Infinity))
         {
          isActive = true; 
           
         }
}
	
function OnTriggerEnter(theCollider : Collider)
{
  if(theCollider.gameObject.tag == "Player");
  	{
  		if(Input.GetKeyDown(KeyCode.E))
  		{
			noteIsOpen = true;
  		}
  			Debug.Log("Youre in the note box collider");
  	}
}
function OnGUI ()
{
    if(isActive)
    {
         GUI.Box(Rect(140,Screen.height-50,Screen.width-300,120),(labelText));
    }
    if(noteIsOpen)
    {
    	GUI.DrawTexture(Rect(100,100,256,256), noteTexture);
    	Debug.Log ("Texture of note should be showing,");
    }
}

Everything is working fine except the last two lines,

GUI.DrawTexture(Rect(100,100,256,256), noteTexture);
Debug.Log ("Texture of note should be showing,");

(noteTexture is a texture I’ve assaign to the script, the same texture the game object is showing)
I know i can add after the “noteTexture” Scaling and something with the alpha channel,
i dont know exacly how to use it…
In-game when im in the collider pressing “E” nothing happends, i must be writing something wrong becouse it was suppost to open up the image and display it on the screen,
and you can see where im going with this…im trying to make the player be able to read a note when it appears as a GUI on his screen.
(If youre going to answer with a fixed script can you make the scaling that according the the screen.width and screen.hight etc… the letter will be shown at the middle of the screen (Not full screen GUI please)…

Thanks.

If your Debug.Log isn’t working then it is nothing to do with GUI

Your code uses OnTriggerEnter and Input.GetKeyDown
(Both are called once and is unlikely to happen simultaneously)

This won’t work (unless you mash the keyboard while entering the collider)