Use char name and current sacct utils
This commit is contained in:
@@ -276,7 +276,7 @@ function processPlayerSpawn(ped) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
messagePlayerAlert(client, `You are now playing as: [#0099FF]${tempSubAccount.firstName} ${tempSubAccount.lastName}`, getColourByName("white"));
|
messagePlayerAlert(client, `You are now playing as: [#0099FF]${getCharacterFullName(client)}`, getColourByName("white"));
|
||||||
messagePlayerNormal(client, "This server is in early development and may restart at any time for updates.", getColourByName("orange"));
|
messagePlayerNormal(client, "This server is in early development and may restart at any time for updates.", getColourByName("orange"));
|
||||||
messagePlayerNormal(client, "Please report any bugs using /bug and suggestions using /idea", getColourByName("yellow"));
|
messagePlayerNormal(client, "Please report any bugs using /bug and suggestions using /idea", getColourByName("yellow"));
|
||||||
|
|
||||||
@@ -285,17 +285,17 @@ function processPlayerSpawn(ped) {
|
|||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
setEntityData(ped, "ag.spawned", true, true);
|
setEntityData(ped, "ag.spawned", true, true);
|
||||||
setPlayerPosition(client, tempSubAccount.spawnPosition);
|
setPlayerPosition(client, getPlayerCurrentSubAccount(client).spawnPosition);
|
||||||
setPlayerHeading(client, tempSubAccount.spawnHeading);
|
setPlayerHeading(client, getPlayerCurrentSubAccount(client).spawnHeading);
|
||||||
setPlayerInterior(client, tempSubAccount.interior);
|
setPlayerInterior(client, getPlayerCurrentSubAccount(client).interior);
|
||||||
setPlayerVirtualWorld(client, tempSubAccount.dimension);
|
setPlayerVirtualWorld(client, getPlayerCurrentSubAccount(client).dimension);
|
||||||
updatePlayerCash(client);
|
updatePlayerCash(client);
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
updateAllPlayerNameTags();
|
updateAllPlayerNameTags();
|
||||||
|
|
||||||
getPlayerData(client).switchingCharacter = false;
|
getPlayerData(client).switchingCharacter = false;
|
||||||
triggerNetworkEvent("ag.jobType", client, tempSubAccount.job);
|
triggerNetworkEvent("ag.jobType", client, getPlayerCurrentSubAccount(client).job);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user