Only process veh if svr elements supported
This commit is contained in:
@@ -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() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user