Change house name display

This commit is contained in:
Vortrex
2022-02-20 18:03:51 -06:00
parent 6b463e1566
commit 6798aa83bc

View File

@@ -253,6 +253,7 @@ function processLabelRendering() {
for(let i in pickups) { for(let i in pickups) {
if(pickups[i].getData("vrr.label.type") != null) { if(pickups[i].getData("vrr.label.type") != null) {
if(getDistance(localPlayer.position, pickups[i].position) <= renderLabelDistance) { if(getDistance(localPlayer.position, pickups[i].position) <= renderLabelDistance) {
if(!pickups[i].isOnScreen) {
let price = "0"; let price = "0";
let rentPrice = "0"; let rentPrice = "0";
let labelInfoType = VRR_PROPLABEL_INFO_NONE; let labelInfoType = VRR_PROPLABEL_INFO_NONE;
@@ -274,7 +275,7 @@ function processLabelRendering() {
break; break;
case VRR_LABEL_HOUSE: case VRR_LABEL_HOUSE:
renderPropertyEntranceLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType); renderPropertyEntranceLabel("House", pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType);
break; break;
case VRR_LABEL_JOB: case VRR_LABEL_JOB:
@@ -291,5 +292,6 @@ function processLabelRendering() {
} }
} }
} }
}
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------