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; // } //} }
private void MainMenu_OnItemActivated(NativeItem sender, EventArgs e) { if (sender == spawnHerbie) { HerbieHandler.CreateHerbie(Utils.PlayerPed.Position, Utils.PlayerPed.Heading, true); } Close(); }
private void Main_Aborted(object sender, EventArgs e) { HerbieHandler.Abort(); }