DeveloperConsole.DeveloperConsole.ShowConsole C# (CSharp) Method

ShowConsole() public method

Show the console
public ShowConsole ( bool show ) : void
show bool Whether or not the console should be shown
return void
        public void ShowConsole(bool show)
        {
            _isHidden = !show;
            _lineOffset = 0;
            _historyCursor = -1;
            if (show) {
                _disabledControls = GTAFuncs.DisableAllControls();
                SetConsoleControls();
            } else {
                GTAFuncs.SetControlActions(false);
                GTAFuncs.EnableControls(_disabledControls);
                _disabledControls.Clear();
            }
        }