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.

Added Oficer does not act as police

Featured Replies

I have issues with a code that i meant would spawn a 'partner' that would take part in interactions with hatedGroups
My code :
 

Spoiler

 

Spoiler

   {
                                                tik2Ctr = false;                                             
                                                arrestee.BlockPermanentEvents = true;
                                                Functions.SetPedAsCop(arrestee);                                                
                                                Functions.SetPedCantBeArrestedByPlayer(arrestee, true);
                                                Functions.SetPedCanBePulledOver(arrestee, false);
                                                arrestee.RelationshipGroup = "COP";
                                                arrestee.IsPersistent = true;
                                                arrestee.Inventory.GiveNewWeapon(WeaponHash.CombatPistol, 100, true);
                                                arrestee.Tasks.FightAgainstClosestHatedTarget(1000.0f, 30000);
                                                NativeFunction.Natives.SetPedCombatAbility(arrestee, 2);
                                                Game.LogTrivial("ooooooooooooooooo tik2  ..");
                                            }

 

 

Instead of reacting towards the hostiles the partner-Ped stands motionless and does not react, even when hit by bullets
There are hostiles in all yellow circles.

 

image.png

I know the code is used, because i get the trivial-sentence logged.

I am missing 'something' in the activation code, but after searching i have not been able to get a responsive 'partner'.

 

Spoiler

 

 

Edited by GTAbear
very bad formatting of code

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

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

  • Management Team
2 minutes ago, GTAbear said:

I have issues with a code that i meant would spawn a 'partner' that would take part in interactions with hatedGroups

 

Have you tried making them attack one of the specific peds? Does that work?

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

  • Author
1 minute ago, LMS said:

one of the specific peds

Hi Thank you for assisting once more!
No i have not tried that, and i do not know how to sort out the gang-members from other Peds.
I expected that using the default relationshipgroup COP would make the partner cop react to all gangs. That could be a mistake!
But how can i avoid adding normal civilians to a list of gangsters

 Ped[] suspectGroup = Game.LocalPlayer.Character.GetNearbyPeds(10);

Could include civilians driving on the street. (they flee screaming -very nice touch : )

 

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

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

  • Management Team

Gang members should have their own specific relationship group so you could either check for that or exclude the common ones on the street (I forgot what they are called, but might just be CIVMALE).

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

  • Author
5 hours ago, LMS said:

you could either check for that

It works!
What i did was to add all to an array, and then check if they had HATE-relations towards player, witch would make them hostiles.
Here is the code in case someone else has the same problem

Spoiler
         Ped[] gangs = Game.LocalPlayer.Character.GetNearbyPeds(10);
                                                for (int ii = 0; ii < gangs.Length; ii += 1)
                                                {
                                                    if (gangs[ii].RelationshipGroup == "HATES_PLAYER")
                                                        partner.Tasks.FightAgainst(gangs[ii], 30000);
                                                }


 

Thanks again!

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.