PDA

View Full Version : Car Despawn After Being Destroyed?


DragoA
17/08/2014, 07:51 PM
How do I make it so that cars despawn after they are destroyed?

Gogeta101
17/08/2014, 07:59 PM
They automaticly do

DragoA
17/08/2014, 08:10 PM
No they don't.

AMouldyLemon
17/08/2014, 08:18 PM
SetVehicleToRespawn(vehicleid);


Maybe?

Juvanii
17/08/2014, 08:38 PM
public OnVehicleDeath(vehicleid, killerid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}

Threshold
17/08/2014, 10:31 PM
I am going to assume that by 'despawn' you mean 'destroy/delete'.

public OnVehicleDeath(vehicleid) //Called when a vehicle is destroyed or enters the water.
{
DestroyVehicle(vehicleid);
return 1;
}