From 6b264cc198dd8110c3d8b5c33b621c6ec3d79504 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:55:49 -0500 Subject: [PATCH] Apply interior to vehicles that have it --- scripts/client/utilities.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 15701dde..7094847f 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -339,6 +339,13 @@ function setLocalPlayerInterior(interior) { gta.cameraInterior = interior; } } + + let vehicles = getElementsByType(ELEMENT_VEHICLE); + for(let i in vehicles) { + if(getEntityData(vehicles[i], "vrr.interior")) { + vehicles[i].interior = getEntityData(vehicles[i], "vrr.interior"); + } + } } // ===========================================================================