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?
Preventing changing a code locks password?
Discussion in 'Rust Development' started by Grubs, Feb 15, 2017.
-
You probably need to make your own Hook. Maybe taking a look at this code could help:
HooksExtended for Rust | Oxide -
Wulf Community Admin
You can use the CanUseLock(BaseLock ilock, BasePlayer player) hook to do what you want, you do not need another plugin.
-
-
Wulf Community Admin
-
-
Awesome, ill try my best at it. Any tips on how to detect cupboard authentication?
-
Wulf Community Admin