Don't apply extra ped properties
This commit is contained in:
@@ -184,11 +184,11 @@ function setLocalPlayerFrozenState(state) {
|
||||
function setLocalPlayerControlState(controlState, cursorState = false) {
|
||||
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting control state to ${controlState} (Cursor: ${cursorState})`);
|
||||
controlsEnabled = controlState;
|
||||
localPlayer.invincible = true;
|
||||
if(getGame() != GAME_GTA_IV) {
|
||||
localPlayer.collisionsEnabled = controlState;
|
||||
localPlayer.invincible = false;
|
||||
}
|
||||
//localPlayer.invincible = true;
|
||||
//if(getGame() != GAME_GTA_IV) {
|
||||
// localPlayer.collisionsEnabled = controlState;
|
||||
// localPlayer.invincible = false;
|
||||
//}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
@@ -454,9 +454,11 @@ function setLocalPlayerCash(amount) {
|
||||
// ===========================================================================
|
||||
|
||||
function removeWorldObject(model, position, range) {
|
||||
if(isRemovingWorldObjectsSupported()) {
|
||||
logToConsole(LOG_DEBUG, `[VRR.Utilities] Removing world object ${model} at X: ${position.x}, Y: ${position.x}, Z: ${position.x} with range of ${range}`);
|
||||
gta.removeWorldObject(model, position, range);
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
@@ -468,12 +470,14 @@ function excludeModelFromGroundSnow(model) {
|
||||
// ===========================================================================
|
||||
|
||||
function destroyAutoCreatedPickups() {
|
||||
if(arePickupsSupported()) {
|
||||
getElementsByType(ELEMENT_PICKUP).forEach(function(pickup) {
|
||||
if(pickup.isOwner) {
|
||||
destroyElement(pickup);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
@@ -493,7 +497,7 @@ function processLocalPlayerControlState() {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function clearLocalPlayerWantedLevel() {
|
||||
function processWantedLevelReset() {
|
||||
if(localPlayer == null) {
|
||||
return false;
|
||||
}
|
||||
@@ -638,12 +642,6 @@ function getAllowedSkinIndexBySkinId(skinId) {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function processWantedLevelReset() {
|
||||
localPlayer.wantedLevel = 0;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function setMinuteDuration(minuteDuration) {
|
||||
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting minute duration to ${minuteDuration}ms`);
|
||||
gta.time.minuteDuration = minuteDuration;
|
||||
|
||||
Reference in New Issue
Block a user