Jump to content
BloodyMustache89

Ragehook Console Commands

Recommended Posts

Im making a plugin and after i click left control my custom console command no longer works. Please help. It does work before i click left control though.

while(true)
                {
                    GameFiber.Yield();
                    if(Game.IsKeyDown(System.Windows.Forms.Keys.LControlKey))
                    {
                        break;
                    }
                }

                Game.DisplayNotification("You have gone on duty!");
                Worker.setDutyStatus(true);

                return;
            });
        }

        [Rage.Attributes.ConsoleCommand]
        public static void Command_GetRepoDutyStatus()
        {
            string dutyStatus = Worker.getDutyStatus().ToString();
            Game.LogTrivial(dutyStatus.ToString());
        }

 

Share this post


Link to post
Share on other sites

http://i.imgur.com/I0B5P1Y.png

This topic has been moved to the appropriate forum. Please post in the correct location in the future.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×