Check for global svr cfg pickups/blips enabled
This commit is contained in:
@@ -1002,6 +1002,10 @@ function createAllBusinessBlips() {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createBusinessEntrancePickup(businessId) {
|
function createBusinessEntrancePickup(businessId) {
|
||||||
|
if(!getServerConfig().createBusinessPickups) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getBusinessData(businessId).entrancePickupModel != -1) {
|
if(getBusinessData(businessId).entrancePickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getServerGame()].business;
|
let pickupModelId = getGameConfig().pickupModels[getServerGame()].business;
|
||||||
|
|
||||||
@@ -1020,6 +1024,10 @@ function createBusinessEntrancePickup(businessId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createBusinessEntranceBlip(businessId) {
|
function createBusinessEntranceBlip(businessId) {
|
||||||
|
if(!getServerConfig().createBusinessBlips) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getBusinessData(businessId).entranceBlipModel != -1) {
|
if(getBusinessData(businessId).entranceBlipModel != -1) {
|
||||||
let blipModelId = getGameConfig().blipSprites[getServerGame()].business;
|
let blipModelId = getGameConfig().blipSprites[getServerGame()].business;
|
||||||
|
|
||||||
@@ -1040,6 +1048,10 @@ function createBusinessEntranceBlip(businessId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createBusinessExitPickup(businessId) {
|
function createBusinessExitPickup(businessId) {
|
||||||
|
if(!getServerConfig().createBusinessPickups) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getBusinessData(businessId).hasInterior) {
|
if(getBusinessData(businessId).hasInterior) {
|
||||||
if(getBusinessData(businessId).exitPickupModel != -1) {
|
if(getBusinessData(businessId).exitPickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getServerGame()].exit;
|
let pickupModelId = getGameConfig().pickupModels[getServerGame()].exit;
|
||||||
@@ -1060,6 +1072,10 @@ function createBusinessExitPickup(businessId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createBusinessExitBlip(businessId) {
|
function createBusinessExitBlip(businessId) {
|
||||||
|
if(!getServerConfig().createBusinessBlips) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getBusinessData(businessId).hasInterior) {
|
if(getBusinessData(businessId).hasInterior) {
|
||||||
if(getBusinessData(businessId).exitBlipModel != -1) {
|
if(getBusinessData(businessId).exitBlipModel != -1) {
|
||||||
let blipModelId = getGameConfig().blipSprites[getServerGame()].business;
|
let blipModelId = getGameConfig().blipSprites[getServerGame()].business;
|
||||||
|
|||||||
@@ -499,6 +499,10 @@ function createAllHouseBlips() {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createHouseEntrancePickup(houseId) {
|
function createHouseEntrancePickup(houseId) {
|
||||||
|
if(!getServerConfig().createHousePickups) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getHouseData(houseId).entrancePickupModel != -1) {
|
if(getHouseData(houseId).entrancePickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getServerGame()].house;
|
let pickupModelId = getGameConfig().pickupModels[getServerGame()].house;
|
||||||
|
|
||||||
@@ -524,6 +528,10 @@ function createHouseEntrancePickup(houseId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createHouseEntranceBlip(houseId) {
|
function createHouseEntranceBlip(houseId) {
|
||||||
|
if(!getServerConfig().createHouseBlips) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getHouseData(houseId).entranceBlipModel != -1) {
|
if(getHouseData(houseId).entranceBlipModel != -1) {
|
||||||
let blipModelId = getGameConfig().blipSprites[getServerGame()].house;
|
let blipModelId = getGameConfig().blipSprites[getServerGame()].house;
|
||||||
|
|
||||||
@@ -543,6 +551,10 @@ function createHouseEntranceBlip(houseId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createHouseExitPickup(houseId) {
|
function createHouseExitPickup(houseId) {
|
||||||
|
if(!getServerConfig().createHousePickups) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getHouseData(houseId).hasInterior) {
|
if(getHouseData(houseId).hasInterior) {
|
||||||
if(getHouseData(houseId).exitPickupModel != -1) {
|
if(getHouseData(houseId).exitPickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getServerGame()].exit;
|
let pickupModelId = getGameConfig().pickupModels[getServerGame()].exit;
|
||||||
@@ -565,6 +577,10 @@ function createHouseExitPickup(houseId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createHouseExitBlip(houseId) {
|
function createHouseExitBlip(houseId) {
|
||||||
|
if(!getServerConfig().createHouseBlips) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getHouseData(houseId).hasInterior) {
|
if(getHouseData(houseId).hasInterior) {
|
||||||
if(getHouseData(houseId).exitBlipModel != -1) {
|
if(getHouseData(houseId).exitBlipModel != -1) {
|
||||||
let blipModelId = getGameConfig().blipSprites[getServerGame()].house;
|
let blipModelId = getGameConfig().blipSprites[getServerGame()].house;
|
||||||
|
|||||||
@@ -1489,6 +1489,10 @@ function deleteJobLocationPickup(jobId, locationId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createJobLocationPickup(jobId, locationId) {
|
function createJobLocationPickup(jobId, locationId) {
|
||||||
|
if(!getServerConfig().createJobPickups) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getJobData(jobId).pickupModel != -1) {
|
if(getJobData(jobId).pickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getServerGame()].job;
|
let pickupModelId = getGameConfig().pickupModels[getServerGame()].job;
|
||||||
|
|
||||||
@@ -1510,6 +1514,10 @@ function createJobLocationPickup(jobId, locationId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function createJobLocationBlip(jobId, locationId) {
|
function createJobLocationBlip(jobId, locationId) {
|
||||||
|
if(!getServerConfig().createJobBlips) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(getJobData(jobId).blipModel != -1) {
|
if(getJobData(jobId).blipModel != -1) {
|
||||||
let blipModelId = getGameConfig().blipSprites[getServerGame()].job;
|
let blipModelId = getGameConfig().blipSprites[getServerGame()].job;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user