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.

[REQUEST] On-foot traffic stop

Featured Replies

I am working on a big project with some other devs which should have the feature to start a traffic stop while being on foot.

For example: Walking up to the window of a stopped or slowly-moving vehicle, opening a menu and then starting a traffic stop right on the drivers position.

 

However I think I'm missing an API function for that. I do know that Functions.StartPulloverOnParkedVehicle is a thing: however if you call it while being on foot it doesn't work (see attachment). Apparently the player needs to be in a vehicle.

 

So I would like to kindly request an api feature that would allow devs to start traffic stops on foot. 🙂

Could contain: text, font, screenshot

Edited by MarcelWRLD

Just to share -I have made 'brute-force' stopping in as much that the car goes from full-speed to 0 instantly.
I used the Native BringVehicleToHalt code
if (aCar.Speed > 0)                                           

NativeFunction.Natives.BringVehicleToHalt(aCar, 2.0f, delayer, true);

Where

aCar just is the closest vehicle

delayer is a time in ms
I know you are able to make a more smooth breaking ; p -So this should do


                                       

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

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

  • Author
1 minute ago, GTAbear said:

Just to share -I have made 'brute-force' stopping in as much that the car goes from full-speed to 0 instantly.
I used the Native BringVehicleToHalt code
if (aCar.Speed > 0)                                           

NativeFunction.Natives.BringVehicleToHalt(aCar, 2.0f, delayer, true);

Where

aCar just is the closest vehicle

delayer is a time in ms
I know you are able to make a more smooth breaking ; p -So this should do


                                       

Stopping a vehicle isn't really a problem. I am missing the feature to actually start a traffic stop while being "on foot", or like "instantly".
StartPulloverOnParkedVehicle requires the player to be in a vehicle and I think the player also has to blip their siren in order to "confirm" the traffic stop, just like you do it normally while on patrol.

What I'm missing is directly starting a traffic stop without any stuff like the "blip siren" confirmation or being forced to be in a vehicle.

  • 3 weeks later...
On 11/17/2023 at 12:00 AM, MarcelWRLD said:

I am working on a big project with some other devs which should have the feature to start a traffic stop while being on foot.

For example: Walking up to the window of a stopped or slowly-moving vehicle, opening a menu and then starting a traffic stop right on the drivers position.

 

However I think I'm missing an API function for that. I do know that Functions.StartPulloverOnParkedVehicle is a thing: however if you call it while being on foot it doesn't work (see attachment). Apparently the player needs to be in a vehicle.

 

So I would like to kindly request an api feature that would allow devs to start traffic stops on foot. 🙂

Could contain: text, font, screenshot

You are right! i hope we will see it in the future,such a useful and realistic thing! great idea Marcel!

Hellenic Police department

nq0jwXN - Imgur.png

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.