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) {
sendServerNewAFKStatus(true);
if(localPlayer != null) {
localPlayer.collisionsEnabled = false;
gta.setCiviliansEnabled(false);
gta.setTrafficEnabled(false);
}
//if(localPlayer != null) {
// localPlayer.collisionsEnabled = false;
// gta.setCiviliansEnabled(false);
// gta.setTrafficEnabled(false);
//}
}
// ===========================================================================
function processFocusAFK(event) {
sendServerNewAFKStatus(false);
if(localPlayer != null) {
localPlayer.collisionsEnabled = true;
if(gta.game != GAME_GTA_SA) {
gta.setCiviliansEnabled(true);
}
gta.setTrafficEnabled(true);
}
//if(localPlayer != null) {
// localPlayer.collisionsEnabled = true;
// if(gta.game != GAME_GTA_SA) {
// gta.setCiviliansEnabled(true);
// }
// gta.setTrafficEnabled(true);
//}
}
// ===========================================================================