Change standart FirstPersonController variables via other script

Hello Guys,

im using the standart FPS controller script. I would like to disable the MouseX and MouseY axis but not able to find the correct reference in the C# code. All the other inputs should still be active. The charecter have to be able to move but not to look around with the mouse.
Right now i an disabeling the whole script. Im writing Javascript.

what am i doing right now

 FPSController.GetComponent("FirstPersonController").enabled = false;

what i would like to do (pseudocode)

 FPSController.GetComponent("FirstPersonController") GetComponentMouseX = 0 | GetComponentMouseY = 0;

Greetings BP

Attach this script to ur first person. click 1 one for off the controls click 2 for on the mouse controls…

using UnityEngine;
using System.Collections;
 public class MouseControls : MonoBehaviour{    
void Update(){
if(Input.GetKey(KeyCode.Alpha1))

this.gameObject.GetComponent<MouseLook>().enabled=false;//disabling mouse inputs when u click 1
     if(Input.GetKey(KeyCode.Alpha2))
this.gameObject.GetComponent<MouseLook>().enabled=true;//enabling mouse inputs when u click 2 
}
}

See my comments here… (C# but may give you clues)

access fps variables