SHOW:
|
|
- or go back to the newest paste.
1 | - | Samme namespace som Mod1. |
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 | - | Vehicle vehicle = World.CreateVehicle(VehicleHash.Bati2, Game.Player.Character.Position + Game.Player.Character.ForwardVector * 3.0f, Game.Player.Character.Heading); |
40 | + | |
41 | } | |
42 | public void Print(string text, int time) //Toggle print | |
43 | { | |
44 | - | Print("FUCK FUCK FUCK FUCK"); |
44 | + | |
45 | GTA.Native.Function.Call(Hash._ADD_TEXT_COMPONENT_STRING, text); | |
46 | GTA.Native.Function.Call(Hash._0x9D77056A530643F6, time, 1); | |
47 | } | |
48 | - | public void Print(string text, int time = 2500) //Toggle print |
48 | + | |
49 | } |