Add set house data indexes func

This commit is contained in:
Vortrex
2021-01-02 21:55:04 -06:00
parent 8499bfaf4f
commit 56d42a9fec
16 changed files with 637 additions and 446 deletions

View File

@@ -29,7 +29,7 @@ function loadSubAccountFromName(firstName, lastName) {
}
disconnectFromDatabase(dbConnection);
}
return false;
}
@@ -47,7 +47,7 @@ function loadSubAccountFromId(subAccountId) {
}
disconnectFromDatabase(dbConnection);
}
return false;
}
@@ -71,7 +71,7 @@ function loadSubAccountsFromAccount(accountId) {
disconnectFromDatabase(dbConnection);
}
}
return tempSubAccounts;
}
@@ -128,7 +128,7 @@ function showCharacterSelectToClient(client) {
let tempSubAccount = getPlayerData(client).subAccounts[0];
triggerNetworkEvent("ag.showCharacterSelect", client, tempSubAccount.firstName, tempSubAccount.lastName, tempSubAccount.placeOfOrigin, tempSubAccount.dateOfBirth, tempSubAccount.skin);
console.log(`[Asshat.Account] ${getPlayerDisplayForConsole(client)} is being shown the character select GUI`);
} else {
} else {
//let emojiNumbers = ["➊", "➋", "➌", "➍", "➎", "➏", "➐", "➑", "➒"];
//let emojiNumbers = ["①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨"];
//let emojiNumbers = ["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣", "8⃣", "9⃣"];
@@ -247,7 +247,7 @@ function switchCharacterCommand(command, params, client) {
//getPlayerCurrentSubAccount(client).dimension = getPlayerVirtualWorld(client);
saveSubAccountToDatabase(getPlayerCurrentSubAccount(client));
resetClientStuff(client);
client.despawnPlayer();
@@ -268,7 +268,7 @@ function newCharacterCommand(command, params, client) {
let firstName = splitParams[0];
let lastName = splitParams[1];
checkNewCharacter(client, firstName, lastName, "01/01/1901", "Liberty City", getServerConfig().newCharacter.skin);
checkNewCharacter(client, firstName, lastName, "01/01/1901", "Liberty City", getServerConfig().newCharacter.skin);
}
// ---------------------------------------------------------------------------
@@ -314,4 +314,10 @@ function getCharacterFullName(client) {
return `${getPlayerCurrentSubAccount(client).firstName} ${getPlayerCurrentSubAccount(client).lastName}`;
}
// ---------------------------------------------------------------------------
function isPlayerSwitchingCharacter(client) {
return getPlayerData(client).switchingCharacter;
}
// ---------------------------------------------------------------------------