Turning Cursor on and off from Scripts

So i turned the Mouse Cursor off in the Awake Function of the FPS Input Controller once the game starts and i want it to come back when i open the Inventory Script that brings up the GUI.

Whats the best way to go about this?

Thanks this helped, simplified it, was going to complex on a simple problem.