public async Task <Ped> CreateNeutralEnemyPed(Model model, Vector3 pos, float heading = 0f, WeaponHash weaponHash = WeaponHash.Unarmed)
        {
            Ped enemy = await MissionHelper.CreateNeutralEnemyPed(model, pos, heading, weaponHash);

            enemies.Add(enemy);
            return(enemy);
        }
 public void HandleMissionFailedCheck()
 {
     if (deliveryCar._IsBroken())
     {
         MissionHelper.DrawTaskSubtitle(String.Format(Strings.MISSION_DELIVERY_DESTROYED, vehicleLabel));
         MissionStarter.RequestStopCurrentMission();
     }
 }
        public async Task HandleDeliveryDropOff()
        {
            if (Game.Player.WantedLevel > 0)
            {
                if (!wantedLevelWarned)
                {
                    MissionHelper.DrawTaskSubtitle(Strings.MISSION_LOSE_WANTED);
                    importBlip.Alpha     = 0;
                    importBlip.ShowRoute = false;
                    wantedLevelWarned    = true;
                }
            }
            else
            {
                wantedLevelWarned = false;
                if (Game.PlayerPed.CurrentVehicle == deliveryCar)
                {
                    if (!insideCar)
                    {
                        MissionHelper.DrawTaskSubtitle(String.Format(Strings.MISSION_DELIVERY_RETURN_TO_WAREHOUSE, vehicleLabel));
                        deliveryCar.AttachedBlip.Alpha     = 0;
                        deliveryCar.AttachedBlip.ShowRoute = false;
                        importBlip.Alpha     = 255;
                        importBlip.ShowRoute = true;
                        insideCar            = true;
                    }
                }
                else
                {
                    if (insideCar)
                    {
                        MissionHelper.DrawTaskSubtitle(String.Format(Strings.MISSION_DELIVERY_RETURN_TO_VEHICLE, vehicleLabel));
                        deliveryCar.AttachedBlip.Alpha     = 255;
                        deliveryCar.AttachedBlip.ShowRoute = true;
                        importBlip.Alpha     = 0;
                        importBlip.ShowRoute = false;
                        insideCar            = false;
                    }
                }

                World.DrawMarker(MarkerType.VerticalCylinder, importPoint, Vector3.Zero, Vector3.Zero, new Vector3(3f, 3f, 3f),
                                 Color.FromArgb(127, 0, 0, 255));
                if (World.GetDistance(deliveryCar.Position, importPoint) < 5f)
                {
                    API.SetVehicleHalt(deliveryCar.Handle, 3f, 1, true);
                    await WarehouseTeleporter.RequestTeleport(WarehouseTeleport.Inside);

                    deliveryCar.Delete();
                    // TODO: Properly save
                    WarehouseState.VehicleAmount++;
                    Money.AddMoney(10000);
                    MissionStarter.RequestStopCurrentMission();
                }
            }
        }