View difference between Paste ID: 3zqptbJh and F6GmARRe
SHOW: | | - or go back to the newest paste.
1
using System;
2
using System.Windows.Forms;
3
using GTA;
4
5
namespace LockDoors
6
{
7
    public class LockDoors:Script
8
    {
9
        public LockDoors()
10
        {
11
            KeyDown += new GTA.KeyEventHandler(LockDoors_KeyDown);
12
        }
13
14
        void LockDoors_KeyDown(object sender, GTA.KeyEventArgs e)
15
        {
16-
             if (e.Key == Keys.Delete)
16+
            if (e.Key == Keys.Delete)
17-
             }
17+
            {
18
                if (Game.Exists(Player.Character.CurrentVehicle)) ;
19
                {
20
                }
21
22
            }
23
        }
24
    }
25
}