Jump to content

SET_PED_POPULATION_BUDGET ( HELP PLEASE ! )


Recommended Posts

Posted

Hello everyone

SET_PED_POPULATION_BUDGET doesn't work

"mp.game.streaming.setPedPopulationBudget(3);"

No matter what number you set, pedestrians don't appear.

Posted

Keep in mind it's client side and not synced so each player will see different peds.

mp.game.ped.removeScenarioBlockingAreas();
mp.game.ped.setCreateRandomCops(true);
mp.game.ped.setCreateRandomCopsNotOnScenarios(true);
mp.game.ped.setCreateRandomCopsOnScenarios(true);
mp.game.vehicle.setRandomTrains(true);
mp.game.vehicle.setRandomBoats(true);
mp.game.vehicle.setGarbageTrucks(true);
mp.game.streaming.setPedPopulationBudget(3);
mp.game.streaming.setVehiclePopulationBudget(3);
mp.game.streaming.setReducePedModelBudget(false);
mp.game.streaming.setReduceVehicleModelBudget(false);
mp.game.vehicle.setAllGeneratorsActive();
mp.game.vehicle.setAllLowPriorityGeneratorsActive(true);
mp.game.vehicle.setNumberOfParkedVehicles(-1);
mp.game.vehicle.setDistantCarsEnabled(true);
mp.game.vehicle.displayDistantVehicles(true);
mp.game.graphics.disableVehicleDistantlights(false);
mp.game.ped.instantlyFillPopulation();
  • Like 1
Posted (edited)
16 часов назад, Kopra сказал:

Keep in mind it's client side and not synced so each player will see different peds.

mp.game.ped.removeScenarioBlockingAreas();
mp.game.ped.setCreateRandomCops(true);
mp.game.ped.setCreateRandomCopsNotOnScenarios(true);
mp.game.ped.setCreateRandomCopsOnScenarios(true);
mp.game.vehicle.setRandomTrains(true);
mp.game.vehicle.setRandomBoats(true);
mp.game.vehicle.setGarbageTrucks(true);
mp.game.streaming.setPedPopulationBudget(3);
mp.game.streaming.setVehiclePopulationBudget(3);
mp.game.streaming.setReducePedModelBudget(false);
mp.game.streaming.setReduceVehicleModelBudget(false);
mp.game.vehicle.setAllGeneratorsActive();
mp.game.vehicle.setAllLowPriorityGeneratorsActive(true);
mp.game.vehicle.setNumberOfParkedVehicles(-1);
mp.game.vehicle.setDistantCarsEnabled(true);
mp.game.vehicle.displayDistantVehicles(true);
mp.game.graphics.disableVehicleDistantlights(false);
mp.game.ped.instantlyFillPopulation();

Hi. I inserted this code, but there are no pedestrians except cars ;(
Please help me figure this out, I'm even ready to pay so that these pedestrians will appear......

mp.events.add('guiReady', () => {
    mp.game.ped.removeScenarioBlockingAreas();
    mp.game.ped.setCreateRandomCops(true);
    mp.game.ped.setCreateRandomCopsNotOnScenarios(true);
    mp.game.ped.setCreateRandomCopsOnScenarios(true);
    mp.game.vehicle.setRandomTrains(true);
    mp.game.vehicle.setRandomBoats(true);
    mp.game.vehicle.setGarbageTrucks(true);
    mp.game.streaming.setPedPopulationBudget(3);
    mp.game.streaming.setVehiclePopulationBudget(3);
    mp.game.streaming.setReducePedModelBudget(false);
    mp.game.streaming.setReduceVehicleModelBudget(false);
    mp.game.vehicle.setAllGeneratorsActive();
    mp.game.vehicle.setAllLowPriorityGeneratorsActive(true);
    mp.game.vehicle.setNumberOfParkedVehicles(-1);
    mp.game.vehicle.setDistantCarsEnabled(true);
    mp.game.vehicle.displayDistantVehicles(true);
    mp.game.graphics.disableVehicleDistantlights(false);
    mp.game.ped.instantlyFillPopulation();
});

 

Edited by Marks2
  • Sad 1
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...