Beispiel #1
0
        public void OnTick(object sender, EventArgs e)
        {
            if (Game.IsLoading)
            {
                return;
            }

            if (_firstTick)
            {
                ModelHandler.RequestModels();

                _firstTick = false;
            }

            HerbieHandler.Tick();

            //// Install chrome wheel when chrome secondary paint is selected
            //foreach (var h in World.GetAllVehicles(ModelHandler.VWBeetle))
            //{
            //    h.Mods.InstallModKit();
            //    if (h.Mods.SecondaryColor == VehicleColor.Chrome &&h.Mods[VehicleModType.FrontWheel].Index == -1)
            //    {
            //        //h.Mods.WheelType = VehicleWheelType.Sport;
            //        Function.Call(Hash.SET_VEHICLE_WHEEL_TYPE, h, Category);
            //        h.Mods[VehicleModType.FrontWheel].Index = ChromeWheel;
            //    }
            //    else if (h.Mods.SecondaryColor != VehicleColor.Chrome && h.Mods[VehicleModType.FrontWheel].Index == ChromeWheel)
            //    {
            //        h.Mods[VehicleModType.FrontWheel].Index = -1;
            //    }
            //}
        }
Beispiel #2
0
        private void MainMenu_OnItemActivated(NativeItem sender, EventArgs e)
        {
            if (sender == spawnHerbie)
            {
                HerbieHandler.CreateHerbie(Utils.PlayerPed.Position, Utils.PlayerPed.Heading, true);
            }

            Close();
        }
Beispiel #3
0
 private void Main_Aborted(object sender, EventArgs e)
 {
     HerbieHandler.Abort();
 }