Add bank account owner consts
This commit is contained in:
@@ -7,6 +7,17 @@
|
|||||||
// TYPE: Server (JavaScript)
|
// TYPE: Server (JavaScript)
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
// House Owner Types
|
||||||
|
const VRR_BANK_ACCT_OWNER_NONE = 0; // Not owned
|
||||||
|
const VRR_BANK_ACCT_OWNER_PLAYER = 1; // Owner is a player (character/subaccount)
|
||||||
|
const VRR_BANK_ACCT_OWNER_JOB = 2; // Owned by a job
|
||||||
|
const VRR_BANK_ACCT_OWNER_CLAN = 3; // Owned by a clan
|
||||||
|
const VRR_BANK_ACCT_OWNER_FACTION = 4; // Owned by a faction
|
||||||
|
const VRR_BANK_ACCT_OWNER_BIZ = 4; // Owned by a faction
|
||||||
|
const VRR_BANK_ACCT_OWNER_PUBLIC = 5; // Is a public bank account. Technically not owned. This probably won't be used.
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function isPlayerAtBank(client) {
|
function isPlayerAtBank(client) {
|
||||||
if (isPositionAtATM(getPlayerPosition(client))) {
|
if (isPositionAtATM(getPlayerPosition(client))) {
|
||||||
return true;
|
return true;
|
||||||
@@ -14,7 +25,7 @@ function isPlayerAtBank(client) {
|
|||||||
|
|
||||||
let businessId = getPlayerBusiness(client);
|
let businessId = getPlayerBusiness(client);
|
||||||
if (getBusinessData(client) != false) {
|
if (getBusinessData(client) != false) {
|
||||||
if (getBusinessData(businessId).entranceType == AGRP_BIZ_ENTRANCE_TYPE_BANK) {
|
if (getBusinessData(businessId).type == AGRP_BIZ_TYPE_BANK) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,3 +75,5 @@ function isPositionAtATM(position) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user