Aquilon96 Posted June 3, 2015 Share Posted June 3, 2015 I'm making a mod that lets people customize their car. This is what I've got so far: using System;using System.Windows.Forms;using GTA;using GTA.Native;public class TweakMyCar : Script{ public TweakMyCar() { View.MenuTransitions = true; KeyDown += OnKeyDown; } void OnKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F8) { if (View.ActiveMenus == 0) MainMenu(); } } #region Menu void MainMenu() { View.AddMenu(new GTA.Menu("Tweak My Car", new GTA.MenuItem[] { new MenuButton("Customize", OpenCustomizationMenu) })); } void OpenCustomizationMenu() { View.AddMenu(new GTA.Menu("Customize", new GTA.MenuItem[] { new MenuButton("Tint Windows"), new MenuButton("Spoiler") })); } What am I supposed to do now to tint windows and add spoilers? It's would have been like this if it would've been a mod that makes the player invincible: void Menu() { View.AddMenu(new GTA.Menu("Player", new GTA.MenuItem[] { new MenuButton("Activate Invincibility", ActivateInvincibility) })); } #endregion #region Commands void ActivateInvincibility() { } I want to add spoilers and tint the windows of player's current vehicle. Thanks in advance Link to comment Share on other sites More sharing options...
CamxxCore Posted June 3, 2015 Share Posted June 3, 2015 (edited) Use Vehicle.SetMod ie: Vehicle veh = Game.Player.Character.CurrentVehicle;veh.SetMod(...); Edited June 3, 2015 by CamxxCore Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now