Abandoned Vehicle Cleanup 2

by Prof_Farnsworth
Please explain why you're reporting this file:

Abandoned Vehicle Cleanup v2.0 by Prof_Farnsworth

This mod will make a crew recover abandoned vehicles in the player's area (vehicles with no driver or a dead driver). If no abandoned vehicles are found, they may steal vehicles off of the street, from the dealership, etc. The criminals will occasionally get into shootouts with the cops.

VERSION 2 UPDATES: - Crew now has a chance of spawning with a rocket launcher and armour. - Increased default likelihood to steal random vehicles (can be adjusted in .ini). - Optimized code - Crew will now "circle" around the vehicle less, are more likely to stop next to it.
Installation: Place the "crime_city.net" and "crime_city.ini" files into the "scripts" folder of your root GTA IV directory.

In .ini Settings file, the chance for them to STEAL random cars off the street is adjustable (they will still recover all abandoned vehicles regardless of this setting). Enter any integer above 3 to change the likelihood of random theft. ( Default is 35. Lower means it will happen more, higher means less. WARNING: Do not set below 3 or script may crash!)

***This will also affect how often they steal your vehicle.***

Known bugs: Occasionally, car thief will give up ride for another.

****BONUS**** - Also included in the archive is a small script which makes AI drivers drive over dead bodies instead of stopping at them. It is not perfect, but it stops 30 car pile-ups from one ped dying in the street.

To Install, place the file "repossession.net" into your scripts directory.

COPYRIGHT: Please do not upload this mod anywhere else. If you use this mod in one of your own, please be kind enough to give credit.


Prof. Farnsworth
9.06/10 - 16 votes
Downloads: 8,393
Added: May 17, 2011 9:38AM
Last Downloaded: March 24, 2017 11:36AM
File Size: 7.84 KB
» Author Website

Sorry, you must be registered and logged in to add a video to this file. Log in now!

rrrright "recover" the cars
Posted on May 21, 2011 11:13PM by Cubexd
Preety cool mod
Posted on May 23, 2011 7:12AM by earljanxxx09
very good idea, have never been thinking on that before, but now i realize that you never see people steal cars, which isn't realistic at all :)
Posted on May 25, 2011 10:35AM by deathdiggerSWE
10/10, excellent idea!
Posted on May 26, 2011 3:36PM by taekbug
why dont i ever see white people steel cars o.o
Posted on June 8, 2011 8:52PM by epicmodpac
@epicmodpac - No idea. I have seen little old ladies steal cars from inside the Grotti dealership, and they were white.
Posted on June 9, 2011 5:54PM by Prof_Farnsworth
where is my "scripts" folder i dont have one, should i make one or put it in the main gta iv directory with my other mods?
Posted on August 7, 2011 8:42AM by the_pie_dude
I was fighting the cops and then this ladies steals a cop car and i run away while the cops chance her XD good times good times.......
Posted on August 9, 2011 1:55AM by gameassassin102
@the_pie_dude - make a "scripts" folder in your main directory.

@gameassassin - hilarious, good times indeed :D
Posted on August 10, 2011 1:16AM by Prof_Farnsworth
it doesn't works for me. i placed it on IV directory, where i have all the mods. after i placed it on the scripts folder ( i created it for this mod) but nothing. i put 10 on the number but nothing
Posted on August 25, 2011 7:02AM by L382P
@L382P it has to go into GTAIV/scripts as its a dotnetscript not a standard asi script.
Posted on September 8, 2011 5:20PM by steeldragonz
also i will be posting 2 vids following these guys around, some funny stuff esp when the full traffic is on and the cops try to stop them,
Posted on September 8, 2011 5:26PM by steeldragonz
@epicmodpac - I think 'cause, whites aren't pore as black(I'm not racing!)
Posted on December 6, 2011 9:58AM by los314
I'm download today.
Posted on February 16, 2012 9:53AM by Eduardo alvarez
The reason that I deleted this is beacuse when I went out of the safehouse a thief stoled my car parked on the save point!And I was like a FUUUUUUUUUUUUUUUUUUU Rage guy...
Posted on February 19, 2012 3:03PM by Gazakiz
awesome 10/10, the game has a model ped "m_y_thief.wdd". Please add the guy, let he steals cars too and he not have company,cars. Like in GTA 2.

Fix your mod give thieves not m4 for example mp5 or uzi.
Posted on April 5, 2012 7:23PM by BOPOHua
so this mod will make not niko another people will steal car?

the peds are first spawning in the car. this idea is cool.
Posted on May 4, 2012 11:25PM by thespears
Nicé, but there is an error,

Error during NetHook.Tick:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at unmanaged.NativeContext3.Invoke(Int32 nameptr, Byte[] args, Int32 argnum, NativeContext3* cxt)

at GTA.ScriptDomain.RemoteEvent(RemoteEventArgs ev)

at GTA.ScriptDomain.ProcessRemoteEvents()

at GTA.ScriptDomain.Tick()

at GTA.NetHook.Tick()

How do i fix this?
Posted on July 3, 2012 4:52AM by SuperSvekke
@SuperSvekke - this error occurs all the time, but to my knowledge, it has no detrimental effects on scripts. Does your script or game crash when this error comes up?
Posted on July 5, 2012 2:21PM by Prof_Farnsworth
@Prof_Farnsworth, the script crashes, and then i have to restart my gta iv, otherwise they don't steal the cars anymore, also the script crashes if i dump a BUS and a few seconds later, Error in Script "Stealingcars".

(Im from belgium, my english isn't that good :) )

Btw very nice mod :)
Posted on July 6, 2012 12:00PM by SuperSvekke
I forgot to mention, these error line's,

2012-07-06 12:48:59 - Error during Tick in script 'stealingCars.stealingCars':

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at Scripting.?A0x86dcfa3e.IsVehDriveable(Int32 )

at stealingCars.stealingCars.findCar()

at stealingCars.stealingCars.stealingCars_Tick(Object sender, EventArgs e)

at GTA.Script.TryTick()

at GTA.Script.DoTick()

at GTA.ScriptThread.OnTick()

2012-07-06 12:48:59 - Error in Thread.Abort:

System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort()

at GTA.NetThread.Abort()
Posted on July 6, 2012 12:03PM by SuperSvekke
Bizarre that it crashes the script, as I have seen this error many times (with this script and others) and the crew still spawns. I have seen them take a bus, but I wasn't driving it. Let me have a look at it, and I will try to post an update shortly.

Posted on July 8, 2012 12:02AM by Prof_Farnsworth
I tried again with the bus, this time the script dont crashes. and the crew stealed the bus. Also, i'm using the mod LCPDFR, its mostly there where it crashes. but, the next time it crashes, i wil look a few minutes to my abandoned car. if the crew come and gets it, i will keep my eyes on it.

Have a nice day :)
Posted on July 8, 2012 6:31PM by SuperSvekke
@SuperSvekke - I am not sure about the compatibility with LCPDFR. After reading the error log more closely, I realized I have not seen this specific error before. There is no problem in the code that I can see. Have you tried it without LCPDFR?
Posted on July 11, 2012 6:55PM by Prof_Farnsworth
@Prof_Farnsworth, i'm getting sick i have gta iv installed for the 5th time, because there's always somethings that is messing with my gta, Somethimes it's that stupid ELS, after that clean install of gta i have not istalled lcpdfr on it. but i have downloaded a car pack (Ultimate hd car pack) an installed, also installed your Abandoned Vehicle Cleanup 2. but now, without any f*cking reason, the game crashes,...

- The Scripthookdotnet log:

2012-07-12 23:36:59 - Initializing ScriptHookDotNet v1.7.1.4 BETA (GTA IV version

2012-07-12 23:37:25 - Direct3D device created!

2012-07-12 23:37:25 - SEARCHING FOR SCRIPTS...

2012-07-12 23:37:25 - Loading scripts in Assembly 'scripts\crime_city.net.dll' ...

2012-07-12 23:37:25 - ...found script 'stealingCars.stealingCars'!

2012-07-12 23:37:25 - DONE! 1 valid scripts found!

2012-07-12 23:37:25 - STARTING SCRIPTS...

2012-07-12 23:37:25 - Error during GetPhoneNumber (Phone checks will be disabled):

System.Exception: Accessing Globals failed! Invalid Memory Address!

at unmanaged.MemoryAccess.GetGlobalAddress(Int32 index)

at unmanaged.MemoryAccess.GetPhoneNumber()

at GTA.NetHook.CheckPhone()

2012-07-12 23:37:25 - ...successfully started script 'stealingCars.stealingCars'!

Scripthook log:

Log start: Thu Jul 12 23:36:59 2012


[INFO] GTA IV Script Hook 0.5.1 - (C) 2009, Aru - Initialized

[INFO] Process base address: 0x1330000

[INFO] Auto detecting game version

[INFO] Using game version 1.0.7

[INFO] (ELS) Script started: V6-R1.13-091110

[INFO] (ELS) File - CMID 0, ADMIRAL off.

[INFO] (ELS) File - CMID 1, AIRTUG off.

[INFO] (ELS) File - CMID 2, AMBULANCE active - els_cmid 1.

[INFO] (ELS) File - CMID 3, BANSHEE off.

[INFO] (ELS) File - CMID 4, BENSON off.

[INFO] (ELS) File - CMID 5, BIFF off.

[INFO] (ELS) File - CMID 6, BLISTA off.

[INFO] (ELS) File - CMID 7, BOBCAT off.

[INFO] (ELS) File - CMID 8, BOXVILLE off.

[INFO] (ELS) File - CMID 9, BUCCANEER off.

[INFO] (ELS) File - CMID 10, BURRITO off.

[INFO] (ELS) File - CMID 11, BURRITO2 off.

[INFO] (ELS) File - CMID 12, BUS off.

[INFO] (ELS) File - CMID 13, CABBY off.

[INFO] (ELS) File - CMID 14, CAVALCADE off.

[INFO] (ELS) File - CMID 15, CHAVOS off.


[INFO] (ELS) File - CMID 17, COMET off.

[INFO] (ELS) File - CMID 18, COQUETTE off.

[INFO] (ELS) File - CMID 19, DF8 off.

[INFO] (ELS) File - CMID 20, DILETTANTE off.

[INFO] (ELS) File - CMID 21, DUKES off.

[INFO] (ELS) File - CMID 22, E109 off.

[INFO] (ELS) File - CMID 23, EMPEROR off.

[INFO] (ELS) File - CMID 24, EMPEROR2 off.

[INFO] (ELS) File - CMID 25, ESPERANTO off.

[INFO] (ELS) File - CMID 26, FACTION off.

[INFO] (ELS) File - CMID 27, FBI active - els_cmid 2.

[INFO] (ELS) File - CMID 28, FELTZER off.

[INFO] (ELS) File - CMID 29, FEROCI off.

[INFO] (ELS) File - CMID 30, FEROCI2 off.

[INFO] (ELS) File - CMID 31, FIRETRUCK active - els_cmid 3.

[INFO] (ELS) File - CMID 32, FLATBED off.

[INFO] (ELS) File - CMID 33, FORTUNE off.

[INFO] (ELS) File - CMID 34, FORKLIFT off.

[INFO] (ELS) File - CMID 35, FUTO off.

[INFO] (ELS) File - CMID 36, FXT off.

[INFO] (ELS) File - CMID 37, HABANERO off.

[INFO] (ELS) File - CMID 38, HAKUMAI off.

[INFO] (ELS) File - CMID 39, HUNTLEY off.

[INFO] (ELS) File - CMID 40, INFERNUS off.

[INFO] (ELS) File - CMID 41, INGOT off.

[INFO] (ELS) File - CMID 42, INTRUDER off.


[INFO] (ELS) File - CMID 44, LOKUS off.

[INFO] (ELS) File - CMID 45, MANANA off.

[INFO] (ELS) File - CMID 46, MARBELLA off.

[INFO] (ELS) File - CMID 47, MERIT off.

[INFO] (ELS) File - CMID 48, MINIVAN off.

[INFO] (ELS) File - CMID 49, MOONBEAM off.

[INFO] (ELS) File - CMID 50, MRTASTY off.

[INFO] (ELS) File - CMID 51, MULE off.

[INFO] (ELS) File - CMID 52, NOOSE active - els_cmid 4.

[INFO] (ELS) File - CMID 53, NSTOCKADE active - els_cmid 5.

[INFO] (ELS) File - CMID 54, ORACLE off.

[INFO] (ELS) File - CMID 55, PACKER off.

[INFO] (ELS) File - CMID 56, PATRIOT off.

[INFO] (ELS) File - CMID 57, PERENNIAL off.

[INFO] (ELS) File - CMID 58, PERENNIAL2 off.

[INFO] (ELS) File - CMID 59, PEYOTE off.

[INFO] (ELS) File - CMID 60, PHANTOM off.

[INFO] (ELS) File - CMID 61, PINNACLE off.

[INFO] (ELS) File - CMID 62, PMP600 off.

[INFO] (ELS) File - CMID 63, POLICE active - els_cmid 6.

[INFO] (ELS) File - CMID 64, POLICE2 active - els_cmid 7.

[INFO] (ELS) File - CMID 65, POLPATRIOT active - els_cmid 8.

[INFO] (ELS) File - CMID 66, PONY off.

[INFO] (ELS) File - CMID 67, PREMIER off.

[INFO] (ELS) File - CMID 68, PRESIDENTE off.

[INFO] (ELS) File - CMID 69, PRIMO off.

[INFO] (ELS) File - CMID 70, PSTOCKADE active - els_cmid 9.

[INFO] (ELS) File - CMID 71, RANCHER off.

[INFO] (ELS) File - CMID 72, REBLA off.

[INFO] (ELS) File - CMID 73, RIPLEY off.

[INFO] (ELS) File - CMID 74, ROMERO off.

[INFO] (ELS) File - CMID 75, RUINER off.

[INFO] (ELS) File - CMID 76, SABRE off.

[INFO] (ELS) File - CMID 77, SABRE2 off.

[INFO] (ELS) File - CMID 78, SABREGT off.

[INFO] (ELS) File - CMID 79, SCHAFTER off.

[INFO] (ELS) File - CMID 80, SENTINEL off.

[INFO] (ELS) File - CMID 81, SOLAIR off.

[INFO] (ELS) File - CMID 82, SPEEDO off.

[INFO] (ELS) File - CMID 83, STALION off.

[INFO] (ELS) File - CMID 84, STEED off.

[INFO] (ELS) File - CMID 85, STOCKADE off.

[INFO] (ELS) File - CMID 86, STRATUM off.

[INFO] (ELS) File - CMID 87, STRETCH off.

[INFO] (ELS) File - CMID 88, SULTAN off.

[INFO] (ELS) File - CMID 89, SULTANRS off.

[INFO] (ELS) File - CMID 90, SUPERGT off.

[INFO] (ELS) File - CMID 91, TAXI off.

[INFO] (ELS) File - CMID 92, TAXI2 off.

[INFO] (ELS) File - CMID 93, TRASH off.

[INFO] (ELS) File - CMID 94, TURISMO off.

[INFO] (ELS) File - CMID 95, URANUS off.

[INFO] (ELS) File - CMID 96, VIGERO off.

[INFO] (ELS) File - CMID 97, VIGERO2 off.

[INFO] (ELS) File - CMID 98, VINCENT off.

[INFO] (ELS) File - CMID 99, VIRGO off.

[INFO] (ELS) File - CMID 100, VOODOO off.

[INFO] (ELS) File - CMID 101, WASHINGTON off.

[INFO] (ELS) File - CMID 102, WILLARD off.

[INFO] (ELS) File - CMID 103, YANKEE off.

[INFO] (ELS) File - CMID 104, FAGGIO off.

[INFO] (ELS) File - CMID 105, HELLFURY off.

[INFO] (ELS) File - CMID 106, NRG900 off.

[INFO] (ELS) File - CMID 107, PCJ off.

[INFO] (ELS) File - CMID 108, SANCHEZ off.

[INFO] (ELS) File - CMID 109, ZOMBIE off.

[INFO] (ELS) File - CMID 110, POLICE3 off.

[INFO] (ELS) File - CMID 111, POLICE4 off.

[INFO] (ELS) File - CMID 112, POLICEB off.

[INFO] (ELS) File - vehicle properties retrieved.

[INFO] (ELS) File - information retrieved.

[INFO] [EmergencyLightingSystem] Thread started

[INFO] [ScriptHookDotNet] Thread started



//-- (C) Alexander Blade 2008 -- //

C:\Windows\system32\dsound.dll is loaded, address 0x6C480000

Hooking dsound proc named "DirectSoundCreate"

"DirectSoundCreate" hooked, address 0x6C487E3D

Hooking dsound proc named "DirectSoundEnumerateA"

"DirectSoundEnumerateA" hooked, address 0x6C4CD993

Hooking dsound proc named "DirectSoundEnumerateW"

"DirectSoundEnumerateW" hooked, address 0x6C4CD9B0

Hooking dsound proc named "DllCanUnloadNow"

"DllCanUnloadNow" hooked, address 0x6C4B41BB

Hooking dsound proc named "DllGetClassObject"

"DllGetClassObject" hooked, address 0x6C487792

Hooking dsound proc named "DirectSoundCaptureCreate"

"DirectSoundCaptureCreate" hooked, address 0x6C4CD2C5

Hooking dsound proc named "DirectSoundCaptureEnumerateA"

"DirectSoundCaptureEnumerateA" hooked, address 0x6C4CD9CD

Hooking dsound proc named "DirectSoundCaptureEnumerateW"

"DirectSoundCaptureEnumerateW" hooked, address 0x6C4CD9EA

Hooking dsound proc named "GetDeviceID"

"GetDeviceID" hooked, address 0x6C4CD160

Hooking dsound proc named "DirectSoundFullDuplexCreate"

"DirectSoundFullDuplexCreate" hooked, address 0x6C4CD429

Hooking dsound proc named "DirectSoundCreate8"

"DirectSoundCreate8" hooked, address 0x6C4BDE69

Hooking dsound proc named "DirectSoundCaptureCreate8"

"DirectSoundCaptureCreate8" hooked, address 0x6C4CD371

Loading ASI C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\ELS.asi

ASI loaded : C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\ELS.asi, Address 0x6E0A0000

Loading ASI C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\ScriptHookDotNet.asi

ASI loaded : C:\Program Files (x86)\Rockstar Games\Grand Theft Auto IV\ScriptHookDotNet.asi, Address 0x6C5C0000

I dont get the failure of the game. Why is it crashing? I dont wanna install gta iv a 6th time. if it dont wanna run smoothly with mods i dont wanna play it anymore because without mods gta iv s*cks

Do you know any solution?


Posted on July 12, 2012 5:06PM by SuperSvekke
Get scripthook version You are using This should help. As for the ASI loader error, I am not sure.

And it looks like you still have something from ELS running, otherwise all those "ELS" lines would not be in your scripthook log.
Posted on July 13, 2012 5:12PM by Prof_Farnsworth
Indeed, i have upgraded my scripthook to, indeed i have ELS installed. do you use Alexander Blade's asi loader?
Posted on July 13, 2012 5:19PM by SuperSvekke
No, I use Xliveless. Did updating the scripthook help at all? This mod should not have any impact on ASI mods or loaders, as it is purely .net.
Posted on July 15, 2012 11:33AM by Prof_Farnsworth
Ok, indeed updating the scripthook helped a lot, now i can play 45 minutes without crashing.
Posted on July 21, 2012 6:33AM by SuperSvekke
You know what error this is?

(Comes from advancedhook.)

[INFO - 18:27:58] An exception occured

[INFO - 18:27:58] Process: FFEA0000

Address: 88C020

Code: C0000005

Registerdump - EAX: 0 EBP: 20000000 EBX: 0 ECX: 1 EDI: 88BFFA EDX: 62394F4 EIP: 88C020 ESI: CDCDCDCD ESP: 1C7F604


And at the same time, this error, comes op at Scripthookdotnet.

2012-07-22 18:27:58 - Error during NetHook.Tick:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at unmanaged.NativeContext3.Invoke(Int32 nameptr, Byte[] args, Int32 argnum, NativeContext3* cxt)

at GTA.ScriptDomain.RemoteEvent(RemoteEventArgs ev)

at GTA.ScriptDomain.ProcessRemoteEvents()

at GTA.ScriptDomain.Tick()

at GTA.NetHook.Tick()

Posted on July 22, 2012 11:32AM by SuperSvekke
No idea, best to ask the gents at LCPDFR.com. They are usually very helpful in solving problems people have with LCPDFR, and their advanced hook.
Posted on July 22, 2012 10:28PM by Prof_Farnsworth
@Prof_Farnsworth: Thanks for your help, but i uninstalled LCPDFR because thats the reason that almost none of my other scripts work proper, And i've got the solution for my error (System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.) I've had an commandline where with -availablevidmem 2 but my videocard only have 1GB GDR5. and i have set -availablevidmem 2 to -availablevidmem 1 and now it crashes less. :)
Posted on July 25, 2012 2:13PM by SuperSvekke
Glad to hear everything's working.
Posted on July 25, 2012 8:37PM by Prof_Farnsworth
:), can you make a Roadworks script? That spawn roadworks over whole liberty city? do you know what i mean? I realy want a script that some roadworkers are blocking the traffic and there are people working on the road? Because that also in real life :)

( i know gta iv already got roadworks, but i want more roadworks :)
Posted on July 26, 2012 4:27PM by SuperSvekke
Could be done, but I would need the locations for the crews (X, Y, Z locations of intersection or lane to be blocked). I don't think I will have time for a while to look for them. The script would be pretty simple and small itself.
Posted on July 30, 2012 7:26PM by Prof_Farnsworth
@Prof_Farnsworth. i ve been trying to contact you.i am a great fan of yours.this mod, fire fighter mod and others are awesome.i love those suble ambient changes that make gta 4 great...so here is a request...plz can you consider them?just like your FIRE INSPECTOR mod, in a shootout, fire or automatically a WEASEL van appears in the street with 1 driver,i reporter and 1 cameraman.after coming out of the van the reporter covers a random story facinf the camera man and they get in the car and go away...you can add voice from weasel news radio news. howas that sound?its my dream man...i hope you can make it true.also roadwork would be cool.waiting for your reply.

Posted on July 31, 2012 12:52AM by ayanpati
@Prof_Farnsworth, Put the X Y Z locations in such a script is that difficult? because i realy want that :). I like playing the game with your scripts they are amazing!
Posted on July 31, 2012 3:54PM by SuperSvekke
@SuperSvekke - Not difficult to put them in, just time consuming to find them all.

@ayanpati - Could be done. It is a nice idea. I am not sure there is a camera model for the cameraman to use though, is there? Glad you are enjoying the mods. Very kind of you to say.
Posted on August 2, 2012 6:44PM by Prof_Farnsworth
@ prof farnsworth...........yeah right...but i think you can work something out...use the hand camera object if u dont find any suitable alternative but plz make it man.
Posted on August 15, 2012 4:52AM by ayanpati
Do they steal saved cars at your safehouse?
Posted on September 2, 2013 1:01PM by JayJ4509
^what he asked, aaaand, do they steal/"recover" police cars if the police are dead?
Posted on September 7, 2013 2:18AM by Myth34
They will steal your saved cars, yes, especially if you don't go out fast enough when loading a game :)

Myth34 - Not police, as they would need to die in their cars, or my crew would be showing up during every shootout, crime, etc. Essentially anytime the cops leave their vehicle, it would be marked abandoned and up for grabs.
Posted on September 28, 2013 3:50PM by Prof_Farnsworth
Sorry, you must be registered and logged in to post a comment. Log in now!