Use changing room for SA skin select

This commit is contained in:
Vortrex
2021-04-20 21:29:48 -05:00
parent f7a9ea828d
commit fc0f7b1aa7

View File

@@ -110,12 +110,14 @@ function processSkinSelectRendering() {
function toggleSkinSelect(state) { function toggleSkinSelect(state) {
if(state) { if(state) {
skinSelectorIndex = getAllowedSkinDataBySkinId(localPlayer.skin); skinSelectorIndex = getAllowedSkinIndexBySkinId(localPlayer.skin);
if(localPlayer.skin != allowedSkins[gta.game][skinSelectorIndex][0]) { if(localPlayer.skin != allowedSkins[gta.game][skinSelectorIndex][0]) {
localPlayer.skin = allowedSkins[gta.game][skinSelectorIndex][0]; localPlayer.skin = allowedSkins[gta.game][skinSelectorIndex][0];
} }
usingSkinSelector = true; usingSkinSelector = true;
let frontCameraPosition = getPosInFrontOfPos(localPlayer.position, localPlayer.heading, 5); let tempPosition = localPlayer.position;
tempPosition.z += 0.5;
let frontCameraPosition = getPosInFrontOfPos(tempPosition, localPlayer.heading, 3);
gta.setCameraLookAt(frontCameraPosition, localPlayer.position, true); gta.setCameraLookAt(frontCameraPosition, localPlayer.position, true);
gui.showCursor(true, false); gui.showCursor(true, false);
localPlayer.invincible = true; localPlayer.invincible = true;