Hi,
I just wrote a simple RPH plugin to overcome my issue with the "ghost car".
What is it? "Ghost car" is car without driver that might appear after you play the game for a while (30-60 minutes).
This strange phenomena happens because GTA has a bug which somehow it doesn't clean up all entities properly.
When GTA runs out of allocated memory to display peds, it can't create new ped to be spawned as a vehicle drivers.
This GTA bug affects LSPDFR traffic stop functionality as well as some other issues (e.g. unable to stop walking peds with E key).
There's a cure for this which is included in RagePluginHook. You can always open the console and type "CleanWorld".
This cure is indeed working. But I don't like it because it is a brute solution.
Sometimes, I got flickering or missing textures a while after submitting "CleanWorld" command.
The plugin that I wrote will overcome the GTA bugs by periodically cleaning up entities which is already out of sight.
Don't worry. It is safe because it only cleans up non-persistent entities.
Other than that, it will not clean up a blipped entities, which is usually spawned by callouts. So, your callouts will still work fine.
I've tested using it and after 2 hours, I didn't encounter any "ghost car". (usually, after 1 hour I would see them)
I haven't released it on the mod download page, because I want to have your feedback first.
Please try this out:
Since this is an RPH plugin (not LSPDFR), simply put it in the "Plugins" folder and make sure to check it in RPG plugins settings to be loaded during startup.
Otherwise, you can also load it manually from RPH console by typing: LoadPlugin FreeGTAMemory.dll
Please try and give me your feedback. Enjoy!
BR.