Function to remove vehicles
This commit is contained in:
@@ -164,3 +164,11 @@ function getVehicleSpeed(vehicle) {
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function removeVehiclesFromClient() {
|
||||
// Need to destroy elements before clearing array
|
||||
|
||||
getServerData().vehicles.splice(0);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user