diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 2f6a6603..ad05325c 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -306,7 +306,7 @@ function setLocalPlayerPosition(position) { // =========================================================================== -function setLocalPlayerHeading(position) { +function setLocalPlayerHeading(heading) { logToConsole(LOG_DEBUG, `[Asshat.Utilities] Setting heading to ${heading}`); localPlayer.heading = heading; } @@ -321,14 +321,6 @@ function setLocalPlayerInterior(interior) { // =========================================================================== -function setLocalPlayerInterior(interior) { - logToConsole(LOG_DEBUG, `[Asshat.Utilities] Setting interior to ${interior}`); - localPlayer.interior = interior; - gta.cameraInterior = interior; -} - -// =========================================================================== - function setSnowState(fallingSnow, groundSnow) { logToConsole(LOG_DEBUG, `[Asshat.Utilities] Setting falling snow to ${fallingSnow} and ground snow to ${groundSnow}`); if(!isNull(snowing)) { @@ -615,4 +607,15 @@ function getPosInFrontOfPos(pos, angle, distance) { return toVector3(x, y, z); } +// =========================================================================== + +function getAllowedSkinIndexBySkinId(skinId) { + for(let i in allowedSkins[gta.game]) { + if(skinId == allowedSkins[gta.game][i][0]) { + return i; + } + } + return -1; +} + // =========================================================================== \ No newline at end of file