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]; }