SHARE
TWEET

Untitled

Quazaka May 29th, 2015 (edited) 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Main Class (and same namespace)
  2.     private void onKeyUp(object sender, KeyEventArgs e)
  3.     {
  4.         //Mod1
  5.         if (e.KeyCode == Keys.F5)
  6.         {
  7.             GlobalToggle(1);
  8.             if (toggleArray[1] == true)
  9.             {
  10.                 ShootMotorbikes.Mod1 instans1 = new ShootMotorbikes.Mod1();
  11.                 Print("Motor Mayham Activated");
  12.                  if (e.KeyCode == Keys.NumPad0)
  13.                  {
  14.                      instans1.Activate();
  15.                  }
  16.             }
  17.             else
  18.                 Print("Motor Mayham Deactivated");
  19.         }
  20.     }
  21.  
  22. -------------------------------------------------------------------------------------------------
  23.  
  24. namespace ShootMotorbikes
  25. {
  26.     public class Mod1
  27.     {
  28.         //Mod #1 Bike Mayhem - Enable you to shoot motorbikes on command
  29.         public void Activate()
  30.         {
  31.             {
  32.                 {
  33.                     Vehicle vehicle = World.CreateVehicle(VehicleHash.Bati2, Game.Player.Character.Position +
  34.                         Game.Player.Character.ForwardVector * 3.0f, Game.Player.Character.Heading);
  35.                     vehicle.PlaceOnGround();
  36.                     vehicle.Speed = 300;
  37.                     vehicle.MarkAsNoLongerNeeded();
  38.                     Print("Working as intended", 2500);
  39.                 }
  40.             }
  41.         }
  42.         public void Print(string text, int time) //Toggle print
  43.         {
  44.             GTA.Native.Function.Call(Hash._0xB87A37EEB7FAA67D, "STRING");
  45.             GTA.Native.Function.Call(Hash._ADD_TEXT_COMPONENT_STRING, text);
  46.             GTA.Native.Function.Call(Hash._0x9D77056A530643F6, time, 1);
  47.         }
  48.     }
  49. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top