Removed bugged stuff from afk

This commit is contained in:
Vortrex
2021-04-18 23:07:48 -05:00
parent 25d3b29d77
commit 989f5dd5d2

View File

@@ -17,24 +17,24 @@ function initAFKScript() {
function processLostFocusAFK(event) { function processLostFocusAFK(event) {
sendServerNewAFKStatus(true); sendServerNewAFKStatus(true);
if(localPlayer != null) { //if(localPlayer != null) {
localPlayer.collisionsEnabled = false; // localPlayer.collisionsEnabled = false;
gta.setCiviliansEnabled(false); // gta.setCiviliansEnabled(false);
gta.setTrafficEnabled(false); // gta.setTrafficEnabled(false);
} //}
} }
// =========================================================================== // ===========================================================================
function processFocusAFK(event) { function processFocusAFK(event) {
sendServerNewAFKStatus(false); sendServerNewAFKStatus(false);
if(localPlayer != null) { //if(localPlayer != null) {
localPlayer.collisionsEnabled = true; // localPlayer.collisionsEnabled = true;
if(gta.game != GAME_GTA_SA) { // if(gta.game != GAME_GTA_SA) {
gta.setCiviliansEnabled(true); // gta.setCiviliansEnabled(true);
} // }
gta.setTrafficEnabled(true); // gta.setTrafficEnabled(true);
} //}
} }
// =========================================================================== // ===========================================================================