Closed TommyB123 closed 7 years ago
Example:
foreach(new v: Vehicle) { if(aspawned{v}) { if(!IsVehicleOccupied(v)) { CarColor[v][0] = 1; CarColor[v][1] = 1; AdminLocked{v} = false; VehicleSpawnedBy[v][0] = 0; DestroyVehicle(v); ClearVehicleData(v); } } }
Thanks, I forgot to add DestroyVehicleSafe and DestroyActorSafe functions for this, example of usage here.
DestroyVehicleSafe
DestroyActorSafe
Example: