From 48ae78084e53e9ff5c9b5fb70fc80c9f08010c78 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 8 Mar 2022 15:01:11 -0600 Subject: [PATCH] Disable skin change --- scripts/client/server.js | 5 +++-- scripts/client/skin-select.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/client/server.js b/scripts/client/server.js index 7146c918..2bd4bf32 100644 --- a/scripts/client/server.js +++ b/scripts/client/server.js @@ -303,8 +303,9 @@ function setLocalPlayerInfiniteRun(state) { function setLocalPlayerSkin(skinId) { if(getGame() == VRR_GAME_GTA_IV) { - //natives.changePlayerModel(natives.getPlayerId(), skinId); - localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + natives.changePlayerModel(natives.getPlayerId(), skinId); + //localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + //localPlayer.modelIndex = allowedSkins[skinSelectorIndex][0]; } else { localPlayer.skin = skinId; } diff --git a/scripts/client/skin-select.js b/scripts/client/skin-select.js index 2f3149e7..2b361383 100644 --- a/scripts/client/skin-select.js +++ b/scripts/client/skin-select.js @@ -55,7 +55,8 @@ function processSkinSelectKeyPress(keyCode) { skinSelectMessageTextTop = allowedSkins[skinSelectorIndex][1]; if(getGame() == VRR_GAME_GTA_IV) { //natives.changePlayerModel(natives.getPlayerId(), allowedSkins[skinSelectorIndex][0]); - localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + //localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + //localPlayer.modelIndex = allowedSkins[skinSelectorIndex][0]; } else { localPlayer.skin = allowedSkins[skinSelectorIndex][0]; } @@ -69,7 +70,8 @@ function processSkinSelectKeyPress(keyCode) { skinSelectMessageTextTop = allowedSkins[skinSelectorIndex][1]; if(getGame() == VRR_GAME_GTA_IV) { //natives.changePlayerModel(natives.getPlayerId(), allowedSkins[skinSelectorIndex][0]); - localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + //localPlayer.skin = allowedSkins[skinSelectorIndex][0]; + //localPlayer.modelIndex = allowedSkins[skinSelectorIndex][0]; } else { localPlayer.skin = allowedSkins[skinSelectorIndex][0]; }