Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get user input to end callout

Featured Replies

I was wondering what the code was for getting a user input to press the key 'End' to have it go to End()

Right Now I have this:

Spoiler

public override void Process()
        {
            if (Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 1000f)
            {
                Game.DisplaySubtitle("Investigate the suspect", 6000);
                
            }
            if("INSERT CODE TO RECOGNIZE IF KEY BUTTON HAS BEEN CLICKED")
            {

                 End();

            }
            

        }
        public override void End()
        {
            base.End();
            if (Suspect.Exists()) { Suspect.Dismiss(); }
            //if (SuspectVehicle.Exists()) { SuspectVehicle.Dismiss(); }
            if (SuspectBlip.Exists()) { SuspectBlip.Delete(); }
        }

 

-Vic

 

  • Author
21 hours ago, Pazzi said:

Use this


            if(Rage.Game.IsKeyDown(System.Windows.Forms.Keys.End))
            { 
                 End(); 
            }

 

Perfect! Thank you!!

-Vic

 

  • 2 years later...

I want to add to this, that it is necessary to have an assembly-reference to System.Windows.Forms
In VS 2022 that is done in right-panel on References-context-menu: Add-reference
If that is missing, VS throws an error saying that System.Windows.Forms is unknown.
Learned it the hard way...

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Management Team
2 hours ago, GTAbear said:

I want to add to this, that it is necessary to have an assembly-reference to System.Windows.Forms
In VS 2022 that is done in right-panel on References-context-menu: Add-reference
If that is missing, VS throws an error saying that System.Windows.Forms is unknown.
Learned it the hard way...

 

VS should actually give you a suggestion to add that reference for you when it is missing and you hover over the error.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

12 minutes ago, LMS said:

 

VS should actually give you a suggestion to add that reference for you when it is missing and you hover over the error.

Njao.. VS  say "are you missing an assembly reference", but not what it is, and it does not offer to insert anything. Maybe i have not that feature implemented ..idk


 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.