Sync vehicle panel stuff + remove all default upgrades on SA
This commit is contained in:
@@ -84,33 +84,43 @@ function syncVehicleProperties(vehicle) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(doesEntityDataExist(vehicle, "vrr.panelStatus")) {
|
if(doesEntityDataExist(vehicle, "vrr.invincible")) {
|
||||||
// let panelsStatus = getEntityData(vehicle, "vrr.panelStatus");
|
let invincible = getEntityData(vehicle, "vrr.invincible");
|
||||||
// for(let i in panelsStatus) {
|
element.setProofs(invincible, invincible, invincible, invincible, invincible);
|
||||||
// vehicle.setPanelStatus(i, panelsStatus[i]);
|
}
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if(doesEntityDataExist(vehicle, "vrr.wheelStatus")) {
|
if(doesEntityDataExist(vehicle, "vrr.panelStatus")) {
|
||||||
// let wheelsStatus = getEntityData(vehicle, "vrr.wheelStatus");
|
let panelsStatus = getEntityData(vehicle, "vrr.panelStatus");
|
||||||
// for(let i in wheelsStatus) {
|
for(let i in panelsStatus) {
|
||||||
// vehicle.setWheelStatus(i, wheelsStatus[i]);
|
vehicle.setPanelStatus(i, panelsStatus[i]);
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
//if(doesEntityDataExist(vehicle, "vrr.lightStatus")) {
|
if(doesEntityDataExist(vehicle, "vrr.wheelStatus")) {
|
||||||
// let lightStatus = getEntityData(vehicle, "vrr.lightStatus");
|
let wheelsStatus = getEntityData(vehicle, "vrr.wheelStatus");
|
||||||
// for(let i in lightStatus) {
|
for(let i in wheelsStatus) {
|
||||||
// vehicle.setLightStatus(i, lightStatus[i]);
|
vehicle.setWheelStatus(i, wheelsStatus[i]);
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
//if(doesEntityDataExist(vehicle, "vrr.suspensionHeight")) {
|
if(doesEntityDataExist(vehicle, "vrr.lightStatus")) {
|
||||||
// let suspensionHeight = getEntityData(vehicle, "vrr.suspensionHeight");
|
let lightStatus = getEntityData(vehicle, "vrr.lightStatus");
|
||||||
// vehicle.setSuspensionHeight(suspensionHeight);
|
for(let i in lightStatus) {
|
||||||
//}
|
vehicle.setLightStatus(i, lightStatus[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(doesEntityDataExist(vehicle, "vrr.suspensionHeight")) {
|
||||||
|
let suspensionHeight = getEntityData(vehicle, "vrr.suspensionHeight");
|
||||||
|
vehicle.setSuspensionHeight(suspensionHeight);
|
||||||
|
}
|
||||||
|
|
||||||
if(getGame() == VRR_GAME_GTA_SA) {
|
if(getGame() == VRR_GAME_GTA_SA) {
|
||||||
|
let allUpgrades = getGameData().vehicleUpgrades[getGame()];
|
||||||
|
for(let i in allUpgrades) {
|
||||||
|
vehicle.removeUpgrade(i);
|
||||||
|
}
|
||||||
|
|
||||||
if(doesEntityDataExist(vehicle, "vrr.upgrades")) {
|
if(doesEntityDataExist(vehicle, "vrr.upgrades")) {
|
||||||
let upgrades = getEntityData(vehicle, "vrr.upgrades");
|
let upgrades = getEntityData(vehicle, "vrr.upgrades");
|
||||||
for(let i in upgrades) {
|
for(let i in upgrades) {
|
||||||
@@ -131,18 +141,6 @@ function syncVehicleProperties(vehicle) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(getGame() == VRR_GAME_GTA_III) {
|
|
||||||
if(vehicle.isOwner && vehicle.modelIndex == 116) {
|
|
||||||
vehicle.colour1 = 0;
|
|
||||||
vehicle.colour2 = 1;
|
|
||||||
}
|
|
||||||
} else if(getGame() == VRR_GAME_GTA_VC) {
|
|
||||||
if(vehicle.isOwner && vehicle.modelIndex == 156) {
|
|
||||||
vehicle.colour1 = 0;
|
|
||||||
vehicle.colour2 = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user