Exemplo n.º 1
0
        protected override void Unload()
        {
            Instance = null;
            Logger.Log("DisableLockpick has been unloaded!");
            Logger.Log("Visit Tortellio Discord for more! https://discord.gg/pzQwsew", ConsoleColor.Yellow);

            VehicleManager.onVehicleLockpicked -= OnLockpicked;
        }
Exemplo n.º 2
0
        protected override void Load()
        {
            Instance = this;
            Logger.Log("DisableLockpick has been loaded!", ConsoleColor.Yellow);
            Logger.Log(PluginName + PluginVersion, ConsoleColor.Yellow);
            Logger.Log("Made by Tortellio", ConsoleColor.Yellow);

            if (!Instance.Configuration.Instance.EnablePlugin)
            {
                Logger.Log("DisableLockpick is disabled in configuration.. unloading!");
                Unload();
                return;
            }
            VehicleManager.onVehicleLockpicked += OnLockpicked;
        }