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.

[REQ] Ability to put a ped into a 'stopped' state

Featured Replies

I put this as a request in the GitHub repo, but I thought I'd post it here too.

I'm not sure if there's already a way to do this programmatically, but it would be nice if there was a function we could call that would put a ped into that 'stopped' state where you can interact with them. Like when you hold 'E' to stop a ped, or when you ask a driver to step out of their vehicle. You can either interact (ask for ID/cite/warn) with them by pressing 'E', or place them under arrest by holding 'E'.

Can we have a function that would do this? I found SetPedAsArrested(Rage.Ped) in the API namespace, but I don't think that does the same thing, based on the name of the function. (I haven't tried it yet, though.)

@LMS?

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

35 minutes ago, khorio said:

Ped.Tasks.Pause ? or isn't that what you're looking for

That will pause the ped (though in my experience it doesnt seem to work too well, .StandStill seems to be more reliable)..... what Stealth is asking for is a way to add the ped to a "traffic stop" (not necessarily a "traffic" stop, but the "stopped by police" state they go into when you first hold E/DPadRight). It'd mean for example, when you roll up to a callout the ped would already be "stopped" allowing you to press E/DPadRight to get their ID, without doing the whole "stopping" step first.

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.

4 hours ago, Stealth22 said:

I put this as a request in the GitHub repo, but I thought I'd post it here too.

I'm not sure if there's already a way to do this programmatically, but it would be nice if there was a function we could call that would put a ped into that 'stopped' state where you can interact with them. Like when you hold 'E' to stop a ped, or when you ask a driver to step out of their vehicle. You can either interact (ask for ID/cite/warn) with them by pressing 'E', or place them under arrest by holding 'E'.

Can we have a function that would do this? I found SetPedAsArrested(Rage.Ped) in the API namespace, but I don't think that does the same thing, based on the name of the function. (I haven't tried it yet, though.)

@LMS?

On a similar note, does SetPedAsArrested make them go through the arrest animations? Will the built-in suspect transport come get them automatically? 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

13 hours ago, PNWParksFan said:

On a similar note, does SetPedAsArrested make them go through the arrest animations? Will the built-in suspect transport come get them automatically? 

No.

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.

  • Management Team

I appreciate your suggestion and I also saw it on the repo, but please don't expect this happening anytime soon. My current schedule doesn't really allow any development (not that this is a huge change, but generally).

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

  • Author
4 hours ago, LMS said:

I appreciate your suggestion and I also saw it on the repo, but please don't expect this happening anytime soon. My current schedule doesn't really allow any development (not that this is a huge change, but generally).

No worries, whenever you get to it. :thumbsup:

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

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.