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.

Get the ped targetted by my suspect's task

Featured Replies

  • Author
4 hours ago, GTAbear said:

I did, and so it is, but its possible to fiddle a bit. It has no real functionality so no reason to do it. It will most likely also be crash-prone

 

Yes, you can do anything, it could be a shift from moving towards a position with a check of something, and the shift to attacking the Peds in that position. That could be a state-machine


Does it work if you use FightAgainst(<Ped>);

Okay, thanks.

I now use NativeFunction.CallByName<uint>("TASK_COMBAT_HATED_TARGETS_AROUND_PED") to make my ped fight and I have an other gamefiber who contain :

while (true)
                {


                    nearPed = mySuspect.GetNearbyPeds(5);
                    foreach (Ped ped in nearPed)
                    {
                        if (ped.Exists())
                        {
                            ped.RelationshipGroup = victimGroup;
                        }
                    }
                    GameFiber.Wait(2500);
                    GameFiber.Yield();
                }

and it works pretty well

by Mytical.

  • Replies 20
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • GTAbear
    GTAbear

    I did, and so it is, but its possible to fiddle a bit. It has no real functionality so no reason to do it. It will most likely also be crash-prone   Yes, you can do anything, it could be a

Posted Images

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.