Fix for civ generation during AFK in SA
This commit is contained in:
@@ -24,8 +24,12 @@ addEventHandler("OnLostFocus", function(event) {
|
|||||||
addEventHandler("OnFocus", function(event) {
|
addEventHandler("OnFocus", function(event) {
|
||||||
triggerNetworkEvent("ag.afk", false);
|
triggerNetworkEvent("ag.afk", false);
|
||||||
if(localPlayer != null) {
|
if(localPlayer != null) {
|
||||||
localPlayer.collisionsEnabled = true;
|
localPlayer.collisionsEnabled = true;
|
||||||
gta.setCiviliansEnabled(true);
|
if(gta.game == GAME_GTA_SA) {
|
||||||
|
gta.setCiviliansEnabled(true);
|
||||||
|
}
|
||||||
gta.setTrafficEnabled(true);
|
gta.setTrafficEnabled(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
Reference in New Issue
Block a user