Function to remove vehicles

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

View File

@@ -164,3 +164,11 @@ function getVehicleSpeed(vehicle) {
}
// ===========================================================================
function removeVehiclesFromClient() {
// Need to destroy elements before clearing array
getServerData().vehicles.splice(0);
}
// ===========================================================================