1. Greetings, is there a way to hook when player attempts to enter a code to CodeLock.
    I'm asking this cause of BruteForce problem with CodeLocks.
    I've wrote C# code what should solve the problem, but after i did so, i've found what i can't find a hook where to attack it.
    smth like that:
    Code:
    if (o_lock == null)
                    return;
                if (!(o_lock is CodeLock))
                    return;
                CodeLock _lock = o_lock as CodeLock;
                if (Locker.ContainsKey(player.userID.ToString()))
                {
                    var lockData = Locker[player.userID.ToString()];
                    if (lockData.cLock == _lock && (DateTime.Now - lockData.dt).TotalSeconds < 30)
                    {
                        if (lockData.usages > 15)
                        {
                            Network.Net.sv.Kick(player.net.connection, "Too much attempts");
                            Log(string.Format("{0} - was kicked for BruteForce", player.displayName));
                        }
                        else if (lockData.usages > 5)
                        {
                            player.ChatMessage("You are trying to brute an CodeLock, stop now!");
                            lockData.usages++;
                        }
                        else
                            lockData.usages++;
                    }
                    else
                    {
                        lockData.cLock = _lock;
                        lockData.dt = DateTime.Now;
                        lockData.usages = 1;
                    }
                    Locker[player.userID.ToString()] = lockData;
                }
                else
                {
                    Locker.Add(player.userID.ToString(), new DoorProtector(_lock, DateTime.Now));
                }          
     
  2. There is no hook available that is triggered on entering a code, and this is actually something that should be handled by Rust and not by a plugin or a patch :(
     
  3. So, there is script what hack codelock in a seconds. Bump for seatching the way to fix this...