[HELP] remove cars


is there a way to remove cars? Like you want to spawn a second and the first one gets removed? Couldnt find somthing in the wiki about it. Maybe as an ASI or NET script client-sided?

Thanks in advance,

I would also like to know this. I’m trying todo it in lua like this

local vehicle_current
vehicle_current = GetVehiclePedIsIn(PlayerPedId(), 0)
SetEntityAsMissionEntity(vehicle_current, 0, 1)
vehicle_current = DeleteVehicle()

This works in scripthook and r* scripts but doesnt in lua. Even trying ClearAreaOfVehicles doesnt work.

I’m not sure but someone said the DeleteVehicle thing doesn’t work right now.

Yeah your right http://forum.fivereborn.com/topic/621/help-to-create-a-delete-vehicles-script/3

Try DeleteEntity and parse you vehilce:


@Yashiku Not working.

@kanersps said in Help to create a Delete Vehicles script:

If you look at DeleteVehicle() you will see it doesn’t accept parameters currently. This is being worked on.