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.

Disable spawning of ambient vehicles

Featured Replies

Hi guys, I have never managed to disable the spawn of ambient vehicles (or pets) in a specific zone. I manage to disable the traffic with SET_VEHICLE_POPULATION_BUDGET(0), but it is not the result I want. Any suggestions?

Edited by AchilleX

Check out my FIB HRT Callouts script for LSPDFR!

  • The title was changed to Disable spawning of ambient vehicles
  • Author

Tried the native ADD_POP_MULTIPLIER_SPHERE with values 0f but nothing happens and if I call DOES_POP_MULTIPLIER_SPHERE_EXIST with the returned id it returns false. I called it in this manner 

NativeFunction.CallByHash<int>(
  0x32C7A7E8C43A1F80, // ADD_POP_MULTIPLIER_SPHERE
  pos.X,
  pos.Y,
  pos.Z,
  200f,
  0f,
  0f,
  false,
  false
);

Also, I tried every combinations for the last two boolean parameters but still nothing changes. Same thing for ADD_POP_MULTIPLIER_AREA 😞

Edited by AchilleX

Check out my FIB HRT Callouts script for LSPDFR!

  • Author
6 minutes ago, LMS said:

What is the result you are looking for? Ped and vehicle budget are fairly reliable.

I need to prevent the spawning of vehicles/peds in certain areas, such as in front of the Paleto Bay bank or in an LSIA hangar, but without completely disable the street traffic.

Check out my FIB HRT Callouts script for LSPDFR!

  • Management Team
1 hour ago, AchilleX said:

I need to prevent the spawning of vehicles/peds in certain areas, such as in front of the Paleto Bay bank or in an LSIA hangar, but without completely disable the street traffic.

 

You can use the "disable road" natives to make traffic not spawn there or go there, but it can lead to some odd results where vehicles will u-turn in the middle of a road once they hit the disabled nodes.

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

  • Author
24 minutes ago, LMS said:

 

You can use the "disable road" natives to make traffic not spawn there or go there, but it can lead to some odd results where vehicles will u-turn in the middle of a road once they hit the disabled nodes.

The vehicles that I want to stop spawning are parked, so I don't this would work 😞

Check out my FIB HRT Callouts script for LSPDFR!

  • Author
On 9/29/2022 at 10:22 PM, LMS said:

Try something like SET_ALL_VEHICLE_GENERATORS_ACTIVE_IN_AREA.

Seems to be working, thanks!

 

Also, for prevent ped spawning I'm trying SET_SCENARIO_PEDS_SPAWN_IN_SPHERE_AREA with the last parameter as 0, but I'm not sure if it is actually doing something 🤔

Check out my FIB HRT Callouts script for LSPDFR!

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.