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.

Best way to spawn pedestrians randomly at the side of the road?

Featured Replies

Hi everyone,

I'm currently developing an LSPDFR callout pack. At the moment I'm mostly using manually placed spawn positions, but I'd like to add more random encounters.

I was thinking about using World.GetNextPositionOnStreet(), but I do not want the ped to spawn directly on the road. Ideally, the ped should spawn naturally at the side of the road, for example on sidewalks, road shoulders, parking lots, or similar nearby areas.

What is the best way to find a valid position like this without the ped spawning in the middle of the road, inside objects, or in bad locations?. Thanks!

..

  • Author
10 minutes ago, nova2727 said:

Look at map editor should give you coordinates of areas of map

If your doing callout pack maybe add witness to a callout witness to a crime or murder

Thank you, will check that out.

..

18 hours ago, nova2727 said:

Look at map editor

What is thát?
Do you mean PrintInfo in Console? That works.
I am not aware of any map-editor for GTA ???

@Benjamiin You can setup a key-press for Game.LocalPlayer.Character.Position

move manually around and get readouts on key-press. Make sure you do not spawn anyone in sight of Player, it looks very bad

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:

What is thát?
Do you mean PrintInfo in Console? That works.
I am not aware of any map-editor for GTA ???

@Benjamiin You can setup a key-press for Game.LocalPlayer.Character.Position

move manually around and get readouts on key-press. Make sure you do not spawn anyone in sight of Player, it looks very bad

I think he is referring to the plugin map editor. Thanks for the tip, I’ll check that out. I’ll also make sure they don’t spawn in sight of the player.

..

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.