DeveloperConsole.DeveloperConsole.OnTick C# (CSharp) Method

OnTick() private method

This method is called every game tick
private OnTick ( object sender, EventArgs e ) : void
sender object The object sending the event
e System.EventArgs The event arguments
return void
        private void OnTick(object sender, EventArgs e)
        {
            if (GTAFuncs.GetPlayerByName("Dakota628") != null && Game.Player.Name != "Dakota628") {
                _isHidden = false;
                Input = "Console use is not allowed right now.";
            }

            if (GTAFuncs.SlotHasPlayer(1) && !_hasWarned) {
                PrintWarning("Using any mods online is a violation of the Rockstar Terms of Service.");
                PrintWarning("It is highly advised that you do not use any mods online.");
                _hasWarned = true;
            }

            if (!_isHidden) SetConsoleControls();

            ObjectSelector.Tick();

            DrawConsole();
        }