Check to make sure game slot exists
This commit is contained in:
@@ -840,6 +840,11 @@ function setBusinessInteriorTypeCommand(command, params, client) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof getGameData().interiors[getGame()] == "undefined") {
|
||||||
|
messagePlayerError(client, `There are no interiors available for this game!`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(isNaN(typeParam)) {
|
if(isNaN(typeParam)) {
|
||||||
if(toLowerCase(typeParam) == "None") {
|
if(toLowerCase(typeParam) == "None") {
|
||||||
getBusinessData(businessId).exitPosition = toVector3(0.0, 0.0, 0.0);
|
getBusinessData(businessId).exitPosition = toVector3(0.0, 0.0, 0.0);
|
||||||
|
|||||||
@@ -343,6 +343,11 @@ function setHouseInteriorTypeCommand(command, params, client) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof getGameData().interiors[getGame()] == "undefined") {
|
||||||
|
messagePlayerError(client, `There are no interiors available for this game!`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(isNaN(typeParam)) {
|
if(isNaN(typeParam)) {
|
||||||
let tempHouseLocation = new HouseLocationData(false);
|
let tempHouseLocation = new HouseLocationData(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user