Advertisement
Guest User

Untitled

a guest
May 29th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.55 KB | None | 0 0
  1. Samme namespace som Mod1.
  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.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. namespace ShootMotorbikes
  32. {
  33.     public class Mod1
  34.     {
  35.         //Mod #1 Bike Mayhem - Enable you to shoot motorbikes on command
  36.         public void Activate()
  37.         {
  38.             {
  39.                 {
  40.                     Vehicle vehicle = World.CreateVehicle(VehicleHash.Bati2, Game.Player.Character.Position + Game.Player.Character.ForwardVector * 3.0f, Game.Player.Character.Heading);
  41.                     vehicle.PlaceOnGround();
  42.                     vehicle.Speed = 300;
  43.                     vehicle.MarkAsNoLongerNeeded();
  44.                     Print("FUCK FUCK FUCK FUCK");
  45.                 }
  46.             }
  47.         }
  48.         public void Print(string text, int time = 2500) //Toggle print
  49.         {
  50.             GTA.Native.Function.Call(Hash._0xB87A37EEB7FAA67D, "STRING");
  51.             GTA.Native.Function.Call(Hash._ADD_TEXT_COMPONENT_STRING, text);
  52.             GTA.Native.Function.Call(Hash._0x9D77056A530643F6, time, 1);
  53.         }
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement