From a9b61bd63c6594947f315c5bf7f6e80938946fe4 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 15 Oct 2021 22:36:12 -0500 Subject: [PATCH] Disable some extra sync data --- scripts/client/sync.js | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/scripts/client/sync.js b/scripts/client/sync.js index 7220d001..41683950 100644 --- a/scripts/client/sync.js +++ b/scripts/client/sync.js @@ -76,26 +76,26 @@ function syncVehicleProperties(vehicle) { } } - if(doesEntityDataExist(vehicle, "vrr.panelStatus")) { - let panelsStatus = getEntityData(vehicle, "vrr.panelStatus"); - for(let i in panelsStatus) { - vehicle.setPanelStatus(i, panelsStatus[i]); - } - } + //if(doesEntityDataExist(vehicle, "vrr.panelStatus")) { + // let panelsStatus = getEntityData(vehicle, "vrr.panelStatus"); + // for(let i in panelsStatus) { + // vehicle.setPanelStatus(i, panelsStatus[i]); + // } + //} - if(doesEntityDataExist(vehicle, "vrr.wheelStatus")) { - let wheelsStatus = getEntityData(vehicle, "vrr.wheelStatus"); - for(let i in wheelsStatus) { - vehicle.setWheelStatus(i, wheelsStatus[i]); - } - } + //if(doesEntityDataExist(vehicle, "vrr.wheelStatus")) { + // let wheelsStatus = getEntityData(vehicle, "vrr.wheelStatus"); + // for(let i in wheelsStatus) { + // vehicle.setWheelStatus(i, wheelsStatus[i]); + // } + //} - if(doesEntityDataExist(vehicle, "vrr.lightStatus")) { - let lightStatus = getEntityData(vehicle, "vrr.lightStatus"); - for(let i in lightStatus) { - vehicle.setLightStatus(i, lightStatus[i]); - } - } + //if(doesEntityDataExist(vehicle, "vrr.lightStatus")) { + // let lightStatus = getEntityData(vehicle, "vrr.lightStatus"); + // for(let i in lightStatus) { + // vehicle.setLightStatus(i, lightStatus[i]); + // } + //} //if(doesEntityDataExist(vehicle, "vrr.suspensionHeight")) { // let suspensionHeight = getEntityData(vehicle, "vrr.suspensionHeight"); @@ -123,8 +123,6 @@ function syncVehicleProperties(vehicle) { } } } - - //gta.REMOVE_UPSIDEDOWN_CAR_CHECK(gta.GET_VEHICLE_ID(vehicle)); } // =========================================================================== @@ -331,7 +329,7 @@ function syncPlayerProperties(player) { // =========================================================================== function syncObjectProperties(object) { - if(getGame() == GAME_GTA_III) { + if(getGame() == GAME_GTA_III || getGame() == GAME_GTA_VC) { if(doesEntityDataExist(object, "vrr.scale")) { let scaleFactor = getEntityData(object, "vrr.scale"); let tempMatrix = object.matrix;