Skip to content

Commit

Permalink
Don't change if too close and on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed May 27, 2021
1 parent 145cfd5 commit 850b72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BicycleCity/BicycleCity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ void OnTick(object sender, EventArgs e)
Ped driver = canChange[i].Driver;
if (driver == null)
continue;
if (canChange[i].IsInRange(Game.Player.Character.Position, 100f) && canChange[i].IsOnScreen)
continue;
Function.Call(Hash.SET_ENTITY_AS_MISSION_ENTITY, driver, true, true);
driver.AlwaysKeepTask = false;
Model newModel;
Expand Down

0 comments on commit 850b72d

Please sign in to comment.