Function to remove vehicles

This commit is contained in:
Vortrex
2023-02-15 03:18:04 -06:00
parent 9322d793e6
commit ae0178717c

View File

@@ -163,4 +163,12 @@ function getVehicleSpeed(vehicle) {
return speed;
}
// ===========================================================================
function removeVehiclesFromClient() {
// Need to destroy elements before clearing array
getServerData().vehicles.splice(0);
}
// ===========================================================================