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