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 DISPLAY TEXT WHEN NEAR A PED

Featured Replies

  • Author

It doesn't work, this part is all grayed out

 

  case ECalloutState.OnScene:
                    if (myPed)
                    {
                        if (myPed.IsAlive)
                        {
                            if (Player.IsOnFoot)
                            {
                                if (Player.DistanceTo2D(myPed) <= 10)
                                {
                                    Game.DisplayHelp("Press ~b~Y~w~ to speak with the ~b~Victim.", 5000);
                                    calloutState = ECalloutState.NearmyPed;
                                }
                            }
                        }
                    }

  • Replies 25
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Posted Images

Does work, you just don't know how to use it.

and also you are using invalid parameters

  • 7 months later...
6 minutes ago, WildJam said:

No, he's right. this does not works

well then you're obviously doing something wrong and nobody can help you if you won't show your code.

30 minutes ago, NoNameSet said:

well then you're obviously doing something wrong and nobody can help you if you won't show your code.

does not works, beacuse he doesn't know how to use this. Do u understand me now?

 

always my jokes are weak, but i should not kidding here, its not place for this, i know.

 

 

most of my topics are edited, so i deleted their beacuse i explained it, and part of my questions, can't be explained by me, so i can't show my codes. Im have read a lot of c# guides so i can do better my scripts, and topics are was created few days ago so.

 

be enough:

if (Game.LocalPlayer.Character.DistanceTo2D(Officer) <= 3)
            {
                Game.DisplayHelp("Press ~b~Y~w~, to speak with ~b~Officer");

                if (!Game.IsKeyDown(Keys.Y)) return;

                if (dialogWithPedIndex < dialogWithPed.Count)
                {
                    Game.DisplaySubtitle(dialogWithPed[dialogWithPedIndex]);
                    dialogWithPedIndex++;
                }

                if (dialogWithPedIndex == 2)
                {
                    //
                }
            }

he was beginner, so its ok when he can't understand it.

Edited by WildJam

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.