示例#1
0
文件: Pilot.cs 项目: TylerEspo/JobsV
 public static void Work()
 {
     if (IsWorking == false)
     {
         Function.Call(Hash.SET_MAX_WANTED_LEVEL, 0);
         Function.Call(Hash.SET_NEW_WAYPOINT, 1191f, 3117f);
         // JobsV.API.Temp.saveModel(Player);
         IsWorking = true;
         CustomPlayer.isWorking = true;
         GTA.Game.FadeScreenOut(1000);
         Script.Wait(1000);
         biz1 = World.CreatePed(GTA.Native.PedHash.Business01AMM, ReturnLocation);
         biz2 = World.CreatePed(GTA.Native.PedHash.Business02AFM, ReturnLocation);
         Vehicle plane = World.CreateVehicle(GTA.Native.VehicleHash.Luxor, new Vector3(-950f, -3171f, 13f), 58f);
         Script.Wait(1000);
         biz1.SetIntoVehicle(plane, VehicleSeat.LeftRear);
         biz2.SetIntoVehicle(plane, VehicleSeat.RightRear);
         Script.Wait(30);
         hours = Function.Call<int>(Hash.GET_CLOCK_HOURS);
         Script.Wait(30);
         // SetModel(PedHash.Fireman01SMY);
         Player.Character.SetIntoVehicle(plane, VehicleSeat.Driver);
         Script.Wait(1000);
         GTA.Game.FadeScreenIn(2000);
     }
     else
     {
         Quit();
     }
 }