Add business arrow markers

This commit is contained in:
Vortrex
2022-03-09 05:17:02 -06:00
parent 1a3d875f78
commit d33356b4c2

View File

@@ -247,19 +247,19 @@ function renderJobLabel(name, position, jobType) {
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
function processLabelRendering() { function processLabelRendering() {
if(renderLabels && areWorldLabelsSupported()) { if(renderLabels) {
if(localPlayer != null) { if(!areServerElementsSupported()) {
if(!areServerElementsSupported()) { if(localPlayer != null) {
//for(let i in businesses) { for(let i in businesses) {
// if(getDistance(localPlayer.position, businesses[i].entrancePosition) <= 75.0) { if(getDistance(localPlayer.position, businesses[i].entrancePosition) <= 75.0) {
// natives.drawColouredCylinder(businesses[i].entrancePosition, 0.0, 0.0, 0, 153, 255); natives.drawColouredCylinder(getPosBelowPos(businesses[i].entrancePosition, 1.0), 0.0, 0.0, 0, 153, 255, 255);
// } }
//} }
}
}
// natives.getScreenViewportId if(areWorldLabelsSupported()) {
// natives.getGameViewportId if(localPlayer != null) {
// natives.getViewportPositionOfCoord
} else {
let pickups = getElementsByType(ELEMENT_PICKUP); let pickups = getElementsByType(ELEMENT_PICKUP);
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) {