diff --git a/scripts/client/vehicle.js b/scripts/client/vehicle.js index 010398f7..5d185e08 100644 --- a/scripts/client/vehicle.js +++ b/scripts/client/vehicle.js @@ -163,4 +163,12 @@ function getVehicleSpeed(vehicle) { return speed; } +// =========================================================================== + +function removeVehiclesFromClient() { + // Need to destroy elements before clearing array + + getServerData().vehicles.splice(0); +} + // =========================================================================== \ No newline at end of file