Only process veh if svr elements supported

This commit is contained in:
Vortrex
2021-12-13 20:45:04 -06:00
parent 684f403f37
commit 6112a27b6f

View File

@@ -534,6 +534,7 @@ function processWantedLevelReset() {
function processLocalPlayerVehicleControlState() { function processLocalPlayerVehicleControlState() {
let position = getLocalPlayerPosition(); let position = getLocalPlayerPosition();
if(areServerElementsSupported()) {
if(inVehicle && localPlayer.vehicle != null) { if(inVehicle && localPlayer.vehicle != null) {
if(!localPlayer.vehicle.engine) { if(!localPlayer.vehicle.engine) {
localPlayer.vehicle.velocity = toVector3(0.0, 0.0, 0.0); localPlayer.vehicle.velocity = toVector3(0.0, 0.0, 0.0);
@@ -550,6 +551,7 @@ function processLocalPlayerVehicleControlState() {
} }
} }
} }
}
// =========================================================================== // ===========================================================================