[Release] Delete Vehicle Script [v1.1.0] (Updated 2020)

It’s working right. The script does not yet work for AI vehicles.

it does not work :smiley: but i modify it and work now thanks

Evaan, does your modified script delete AI vehicles as well?

Deziel0495,

Know of any way to make it work for AI Vehicles?

Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if IsPedSittingInAnyVehicle(GetPlayerPed(-1)) then
car = GetVehiclePedIsIn(GetPlayerPed(-1), false )
elseif car then
Citizen.InvokeNative(0xEA386986E786A54F, Citizen.PointerValueIntInitialized(car))
end
end end )

I don’t really understand why you wrote this? The main script has been updated to fix the issue.

Update 1.0,2

  • Updated the script so you can now delete game spawned cars!
2 Likes

are u sure this update work as because u always update and i got it error never go t worked :v

Well it works on my end, also tried it on another machine and it works on that too.

can you make it to delete vehicle when near it?

Working on it right now.

Perry, the new update allows you to delete AI vehicles.

Thanks wolf! Where can i find the files?

In the description, it’s a download now.

Working on it at the moment.

Found It WOlf, and it works!!! Thank you !!!

omg how u share somthing that still did not work :o are u try to waste my time or ? hi Rp are u sure u have it and got it work ??? :frowning:

Obviously you are doing it wrong, because it’s working fine for everyone else.

no i did right as usualy we put it in resource folder also in citmp-server -

while type in chat /dv nothing happen and it not delete spawened car by me

You might have another script conflicting with it. Do you have any other scripts that use chat commands?