Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Removing PEDs and VEHICLEs


chickens
 Share

Recommended Posts

Hi I found this to remove PEDS and VEHICLEs (with peds)

STREAMING::SET_PED_POPULATION_BUDGET(false);STREAMING::SET_VEHICLE_POPULATION_BUDGET(false);GAMEPLAY::CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, true);GAMEPLAY::CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, true, true, true, true, true);

It works, but I still see cars at streaming limit distance, and when I approach to them,disappears.

Nobody know a easy method to remove vehicles and peds forever?

 

tiTvzBX.jpg

What is in red section are cars, I know you can't see very good, but if I record you will see very good.

Link to comment
Share on other sites

Well you could iterate through all peds and vehicles on the map and delete them manually, that's what I did with scripthoo.net

Link to comment
Share on other sites

Hi I found this to remove PEDS and VEHICLEs (with peds)

STREAMING::SET_PED_POPULATION_BUDGET(false);STREAMING::SET_VEHICLE_POPULATION_BUDGET(false);GAMEPLAY::CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, true);GAMEPLAY::CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, true, true, true, true, true);
It works, but I still see cars at streaming limit distance, and when I approach to them,[/size]disappears.

Nobody know a easy method to remove vehicles and peds forever?

 

tiTvzBX.jpg

What is in red section are cars, I know you can't see very good, but if I record you will see very good.

 

PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME(0.0f);VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(0.0f);
You have to call it every tick for it to work. (: Edited by CamxxCore
Link to comment
Share on other sites

 

Hi I found this to remove PEDS and VEHICLEs (with peds)

STREAMING::SET_PED_POPULATION_BUDGET(false);STREAMING::SET_VEHICLE_POPULATION_BUDGET(false);GAMEPLAY::CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, true);GAMEPLAY::CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, true, true, true, true, true);
It works, but I still see cars at streaming limit distance, and when I approach to them,[/size]disappears.

Nobody know a easy method to remove vehicles and peds forever?

 

tiTvzBX.jpg

What is in red section are cars, I know you can't see very good, but if I record you will see very good.

 

PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME(0.0f);VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(0.0f);
You have to call it every tick for it to work. (:

 

 

Not work very good, Im gonna search in pointers without name.

Link to comment
Share on other sites

try to do opposite of this functions:

    VEHICLE::SET_ALL_VEHICLE_GENERATORS_ACTIVE();    VEHICLE::SET_NUMBER_OF_PARKED_VEHICLES(-1);    VEHICLE::SET_GARBAGE_TRUCKS(1);    VEHICLE::SET_ALL_LOW_PRIORITY_VEHICLE_GENERATORS_ACTIVE(1);    VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(1.0);    STREAMING::SET_VEHICLE_POPULATION_BUDGET(3);    STREAMING::SET_PED_POPULATION_BUDGET(3);

But i think far away traffic of (tens/hundreds) cars does not have handles and is operated internally by engine with no control from natives.

Edited by gtaVmod
Link to comment
Share on other sites

I changed what u gave to me in:

 

 

VEHICLE::SET_NUMBER_OF_PARKED_VEHICLES(-1);

VEHICLE::SET_ALL_LOW_PRIORITY_VEHICLE_GENERATORS_ACTIVE(true);
STREAMING::SET_VEHICLE_POPULATION_BUDGET(0);
STREAMING::SET_PED_POPULATION_BUDGET(0);
VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(1.0);
GAMEPLAY::CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, true);
GAMEPLAY::CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, true, true, true, true, true);

 

-> because original script doesn't worked.

 

The script works, but still remains some peds, I don't know why, I found cars parked and peds in car, on street I saw only peds with dog.

Link to comment
Share on other sites

These things are not ped/vehicles. These are textures - just to illustrate traffic when you looking from far distance :) If you want these to disappear, you would need to nop functions :)

 

All the best,

Paul.

Link to comment
Share on other sites

 

If you want these to disappear, you would need to nop functions :)

I always struggle to understand wtf do you trying to tell

 

oh, really ? Okay.

GTA IV has a function which draw these fake cars.First of all CRenderPhaseDrawScene's virtual function creates an CBaseDC, and assigns one of CBaseDC virtual members a function which renders these cars. After that CRenderPhaseDrawScene's virtual function calls that function which draws cars.

So what he would need to do is to find that function and simply insert retn(if similar function exists), because in GTA V CBaseDC class has gone, and there is no clue to function(as far as I've been searching) unless analyzing all virtuals in CRenderPhaseDrawScene.

 

All the best,

Paul.

Link to comment
Share on other sites

By disassembling the exe. Dumping it from memory and then loading to specific program, in this case, IDA. :)

 

All the best,

Paul.

Link to comment
Share on other sites

  • 6 years later...
Md Faizan

Hey, there is any way that by coding we remove our choices ped example stripper and hooker. If anybody know what to code where to code so please tell me or provide me plz.

.

Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.