1. Getting right into it, I want to prevent a code lock's password from being changed. This could work by either preventing everyone but the "owner" from changing it, or needing cupboard access to change an unlocked code. I want to promote base sharing without the risk of code raids.

    Looking into the docs, I don't see any hooks for code locks or any types of interaction, so does anyone have any ideas?
     
  2. Wulf

    Wulf Community Admin

    You can use the CanUseLock(BaseLock ilock, BasePlayer player) hook to do what you want, you do not need another plugin.
     
  3. So this hook also work for codelock while being designed for signs?
     
  4. Wulf

    Wulf Community Admin

    The hook was never for signs, I'm not sure where you saw that.
     
  5. Sry looked at the wrong think of the api. (I looked at Oxide API for Rust but you meant Oxide API for Rust)
     
  6. Awesome, ill try my best at it. Any tips on how to detect cupboard authentication?
     
  7. Wulf

    Wulf Community Admin

    Perhaps the OnCupboardAuthorize hook?