Woops wrong var name, remove dup'ed func
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user