From eab4d6cfe8cc5a671bb4a2f9b91fa66a4b225eb7 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 14 Jun 2022 17:33:58 -0500 Subject: [PATCH] Check game for restoring camera --- scripts/server/event.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/server/event.js b/scripts/server/event.js index d3a112f4..65b94cfd 100644 --- a/scripts/server/event.js +++ b/scripts/server/event.js @@ -513,12 +513,6 @@ async function onPlayerSpawn(client) { logToConsole(LOG_DEBUG, `[VRR.Event] ${getPlayerDisplayForConsole(client)}'s player data is valid. Continuing spawn processing ...`); - if (getGame() == VRR_GAME_GTA_IV) { - logToConsole(LOG_DEBUG, `[VRR.Event] Setting ${getPlayerDisplayForConsole(client)}'s ped body parts and props`); - setEntityData(getPlayerPed(client), "vrr.bodyParts", getPlayerCurrentSubAccount(client).bodyParts, true); - setEntityData(getPlayerPed(client), "vrr.bodyProps", getPlayerCurrentSubAccount(client).bodyProps, true); - } - logToConsole(LOG_DEBUG, `[VRR.Event] Setting ${getPlayerDisplayForConsole(client)}'s ped scale (${getPlayerCurrentSubAccount(client).pedScale})`); setEntityData(getPlayerPed(client), "vrr.scale", getPlayerCurrentSubAccount(client).pedScale, true); @@ -527,7 +521,7 @@ async function onPlayerSpawn(client) { return false; } - if (isCustomCameraSupported()) { + if (isCustomCameraSupported() && getGame() != VRR_GAME_GTA_IV && getGame() != VRR_GAME_GTA_IV_EFLC) { restorePlayerCamera(client); }