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.

Making a ped immune to pullover

Featured Replies

7 minutes ago, khorio said:

Is there a way to make a ped ignore police warnings, making them immune to traffic stops? Couldn't find anything in the API.

 

do you want them to instead flee from you and make a pursuit? is that what you want as if that is what you want you might have worded it wrong.

Edited by timnboys

My plugins by me are on this site in addition to my own site as well.

Do Not PM Me for Support! follow the instructions for getting support with any mods. 

  • Author

No,  in one case I need to prevent them from reacting to a pullover (blipping them and turning on the siren), in the other call I need them to react to a pullover(stop) and prevent them from creating a pursuit(fleeing). So  it's more like 2 questions :)

 

Edited by khorio

This worked for me to block a ped from being stopped on foot by the player, in theory I suspect it'd work for traffic stops too but I haven't tested that personally:

Functions.SetPedCantBeArrestedByPlayer(Ped, bool);

 

My YouTube Channel: Darkmyre Gaming (Australian LSPDFR patrols, plugins in development, and other games)

My Discord Server | AusGamer Network

 

Please do not PM me for technical support or bug reports, use the appropriate forum or plugin's comments instead.

  • Author
29 minutes ago, Darkmyre said:

This worked for me to block a ped from being stopped on foot by the player, in theory I suspect it'd work for traffic stops too but I haven't tested that personally:

Functions.SetPedCantBeArrestedByPlayer(Ped, bool);

 

Nope, looks like it doesn't, they still pull over, ive tried ending the pullover in the code but he still has to pull over and come to a stop before its cancelled

 

On 5/28/2016 at 1:08 PM, khorio said:

Nope, looks like it doesn't, they still pull over, ive tried ending the pullover in the code but he still has to pull over and come to a stop before its cancelled

 

Try this:

LHandle pullover = Functions.GetCurrentPullover();

if (pullover != null)
{
	if (Functions.GetPulloverSuspect(pullover) == immune_ped)
	{
		Functions.ForceEndCurrentPullover();
	}
}

 

  • Author

He still stops the car just to move on again, after a couple of times this turns it into a pursuit and the whole callout is wasted :p

 

4 hours ago, khorio said:

He still stops the car just to move on again, after a couple of times this turns it into a pursuit and the whole callout is wasted :p

 

In that case, do some experimenting yourself :smile:

You may need to loop the above code and clear their tasks, for instance.

Edited by Albo1125

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

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...

Similar Content

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.