crosshair pointer

How can i shoot at the crosshair or how can i shoot at the middle of the screen or how can i know the position of the Gui laber and shoot at it?

Use:

var ray = Camera.main.ScreenPointToRay(Input.mousePosition);

Then instantiate the bullet:

  Instantiate(bulletPrefab, ray.origin, Quaternion.LookRotation(ray.direction));