Existing cars not receiving partsSolved

i cant get anything to spawn with parts in them 

 

 

{
"EngineParts": {
"Tier1Chance": 100,
"Tier2Chance": 50,
"Tier3Chance": 10,
"MinConditionPercent": 100.0,
"MaxConditionPercent": 100.0
},
"MinFuelAmount": 25,
"MaxFuelAmount": 100,
"MinHealthPercent": 50.0,
"MaxHealthPercent": 100.0,
"ModulePresets": {
"2Sockets": {
"UseVanillaPresets": true,
"CustomPresets": []
},
"3Sockets": {
"UseVanillaPresets": true,
"CustomPresets": []
},
"4Sockets": {
"UseVanillaPresets": true,
"CustomPresets": []
}
}
}

The config looks fine. The most common reason people report this is that they expect parts to be added to existing cars that spawned before the plugin loaded, which they don't.

Have you verified that the cars have spawned after the plugin has loaded?

yes i even restarted the server

Restarting the server doesn't respawn cars since the cars are saved.

Is this your first time using the plugin? If you have used the plugin for a while and just now encountered this issue, then there is likely an issue I need to look into. If this us your first time, it probably just means that those are existing cars.

To verify the basic functioning of the plugin, simply spawn in a new car with the F1 console using the command spawn 4module_car. If that car does not have parts, then something is definitely wrong with the config or with the plugin. If the car does have parts, it's still technically possible that the cars spawning along the roads are being treated differently (it has been an issue before but was fixed), but let's rule out the car age issue first.

that command doesnt do anyhitng and yes first time plugin user and how would i get the caars to respawn

In order for the spawn commands to work, make sure you are aiming at a surface (ideally the ground), since the command needs to determine where you want to spawn the entity.

To respawn cars:

  1. Run the command modularcar.population to see its current value. Default is 3.
  2. Run the command modularcar.population 0 to temporarily prevent cars from respawning.
  3. Run the command modularcar.outsidedecayminutes to see its current value. Default is 300.
  4. Run the command modularcar.outsidedecayminutes 1 to significantly increase car decay.
  5. Wait 12 minutes. During this time, run the carstats command to see how many cars there are and their status. When all the cars are gone (at least the ones that are "Outside"), proceed to the next steps. During the first 2 minutes, cars will be set in the broken state. 10 minutes later, those cars will be despawned.
  6. Run the command modularcar.outsidedecayminutes 300 (using whichever value you saved from step 2).
  7. Run the command modularcar.population 3 (using whichever value you saved from step 1).
  8. Wait a few minutes and run the command carstats again. If the plugin is working correctly, all cars will say "Complete Working".

my cars arnt despawning...

Be sure to wait at least 12 minutes. The cars require 10 minutes to despawn after reaching 0 health.

i followd the steps but my cars health isnt changing , there all still spawned

Do you have any plugins that affect vehicle decay? I just ran those steps on my server and it worked as expected. Car health reaches 0 within 2 minutes. Also, any car that was recently driven will be exempt from decay for a short time.

If you are still having problems, please update the plugin to v2.1.0 and use the carspawnsettings.fillcars command.

the updated file worked thanks allot

Locked automatically