Use changing room for SA skin select
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user