Advertisement
Guest User

DisableControls

a guest
May 18th, 2017
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.09 KB | None | 0 0
  1. using GTA; // This is a reference that is needed! do not edit this
  2. using GTA.Math;
  3. using GTA.Native; // This is a reference that is needed! do not edit this
  4. using System; // This is a reference that is needed! do not edit this
  5. using System.Windows.Forms; // This is a reference that is needed! do not edit this
  6.  
  7. namespace DisableControls
  8. {
  9.     public class DisableControls : Script // declare Modname as a script
  10.     {
  11.  
  12.         public DisableControls() // main function
  13.         {
  14.             Tick += this.OnTick;
  15.             KeyDown += this.OnKeyDown;
  16.             KeyUp += this.OnKeyUp;
  17.         }
  18.  
  19.         void OnTick(object sender, EventArgs e) // This is where most of your script goes
  20.         {
  21.             Game.DisableControlThisFrame(2, GTA.Control.ReplayStartStopRecording);
  22.             Game.DisableControlThisFrame(2, GTA.Control.ReplayStartStopRecordingSecondary);
  23.             Game.DisableControlThisFrame(2, GTA.Control.ReplayRecord);
  24.         }
  25.        
  26.         void OnKeyDown(object sender, KeyEventArgs e)
  27.         {
  28.         }
  29.  
  30.         void OnKeyUp(object sender, KeyEventArgs e)
  31.         {
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement