Use new inhouse/inbiz data

This commit is contained in:
Vortrex
2021-04-23 18:20:03 -05:00
parent d4810209cb
commit 445cd93baa

View File

@@ -146,7 +146,7 @@ function enterExitPropertyCommand(command, params, client) {
}, 2000);
}, 1000);
}, 1100);
removeEntityData(client, "ag.inHouse");
getPlayerData(client).inHouse = false;
return true;
}
}
@@ -177,7 +177,7 @@ function enterExitPropertyCommand(command, params, client) {
}, 2000);
}, 1000);
}, 1100);
removeEntityData(client, "ag.inBusiness");
getPlayerData(client).inBusiness = false;
logToConsole(LOG_DEBUG, `[Asshat.Misc] ${getPlayerDisplayForConsole(client)} entered business ${inBusiness.name}[${inBusiness.index}/${inBusiness.databaseId}]`);
return true;
}
@@ -212,8 +212,8 @@ function enterExitPropertyCommand(command, params, client) {
fadeCamera(client, true, 1.0);
getPlayerData(client).pedState = AG_PEDSTATE_READY;
}, 1000);
}, 1100);
setEntityData(client, "ag.inBusiness", closestBusinessId);
}, 1100);x
getPlayerData(client).inBusiness = closestBusinessId;
return true;
}
}
@@ -249,7 +249,7 @@ function enterExitPropertyCommand(command, params, client) {
getPlayerData(client).pedState = AG_PEDSTATE_READY;
}, 1000);
}, 1100);
setEntityData(client, "ag.inHouse", closestHouseId);
getPlayerData(client).inHouse = closestHouseId;
return true;
}
}