Use backtick for get sacct name string
This commit is contained in:
@@ -3106,7 +3106,8 @@ function getClientCurrentSubAccount(client) {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getClientSubAccountName(client) {
|
||||
return getClientCurrentSubAccount(client).firstName + " " + getClientCurrentSubAccount(client).lastName;
|
||||
let subAccountData = getClientCurrentSubAccount(client);
|
||||
return `${subAccountData.firstName} ${subAccountData.lastName}`;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -3359,11 +3360,13 @@ function canClientUseGuns(client) {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function saveAllServerDataToDatabase() {
|
||||
console.log("[Asshat.Utilities]: Saving all server data to database ...");
|
||||
saveAllClientsToDatabase();
|
||||
saveAllVehiclesToDatabase();;
|
||||
saveAllHousesToDatabase();
|
||||
saveAllBusinessesToDatabase();
|
||||
saveAllClansToDatabase();
|
||||
console.log("[Asshat.Utilities]: Saved all server data to database!");
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -3451,4 +3454,16 @@ function processHoldVehicleEngineKey(client) {
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getClientChatColour(client) {
|
||||
let tempJob = getClientCurrentSubAccount(client).job;
|
||||
if(job != -1) {
|
||||
if(getClientData(client).isWorking) {
|
||||
return getJobData(tempJob).jobColour;
|
||||
}
|
||||
}
|
||||
return getColourByName("white");
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user