Don't spawn player, use existing one (IV)
This commit is contained in:
@@ -520,17 +520,17 @@ function selectCharacter(client, characterId = -1) {
|
|||||||
if (getGame() <= AGRP_GAME_GTA_SA) {
|
if (getGame() <= AGRP_GAME_GTA_SA) {
|
||||||
spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0], spawnInterior, spawnDimension);
|
spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0], spawnInterior, spawnDimension);
|
||||||
} else if (getGame() == AGRP_GAME_GTA_IV) {
|
} else if (getGame() == AGRP_GAME_GTA_IV) {
|
||||||
spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0], spawnInterior, spawnDimension);
|
//spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0], spawnInterior, spawnDimension);
|
||||||
//clearPlayerWeapons(client);
|
clearPlayerWeapons(client);
|
||||||
//setPlayerSkin(client, skin);
|
setPlayerPosition(client, spawnPosition);
|
||||||
//setPlayerPosition(client, spawnPosition);
|
setPlayerHeading(client, spawnHeading);
|
||||||
//setPlayerHeading(client, spawnHeading);
|
|
||||||
//setPlayerInterior(client, spawnInterior);
|
//setPlayerInterior(client, spawnInterior);
|
||||||
//setPlayerDimension(client, spawnDimension);
|
//setPlayerDimension(client, spawnDimension);
|
||||||
//restorePlayerCamera(client);
|
restorePlayerCamera(client);
|
||||||
|
setPlayerSkin(client, skin);
|
||||||
} else if (getGame() == AGRP_GAME_MAFIA_ONE) {
|
} else if (getGame() == AGRP_GAME_MAFIA_ONE) {
|
||||||
//spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0]);
|
//spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0]);
|
||||||
logToConsole(LOG_DEBUG, `[VRR.SubAccount] Spawning ${getPlayerDisplayForConsole(client)} as ${getGameConfig().skins[getGame()][skin][1]} (${getGameConfig().skins[getGame()][skin][0]})`);
|
//logToConsole(LOG_DEBUG, `[VRR.SubAccount] Spawning ${getPlayerDisplayForConsole(client)} as ${getGameConfig().skins[getGame()][skin][1]} (${getGameConfig().skins[getGame()][skin][0]})`);
|
||||||
spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0]);
|
spawnPlayer(client, spawnPosition, spawnHeading, getGameConfig().skins[getGame()][skin][0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -727,7 +727,7 @@ function forcePlayerIntoSwitchCharacterScreen(client) {
|
|||||||
getPlayerCurrentSubAccount(client).interior = 0;
|
getPlayerCurrentSubAccount(client).interior = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isGameFeatureSupported("armour")) {
|
if (isGameFeatureSupported("pedArmour")) {
|
||||||
getPlayerCurrentSubAccount(client).armour = getPlayerArmour(client);
|
getPlayerCurrentSubAccount(client).armour = getPlayerArmour(client);
|
||||||
} else {
|
} else {
|
||||||
getPlayerCurrentSubAccount(client).armour = 0;
|
getPlayerCurrentSubAccount(client).armour = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user