Door Keys adds keys that belong to doors. Staff with the 'manage_doors' permission create
a key for a door, add existing keys to it, list its keys and take them off it from the keys
property of the door menu. A player with a key molding kit uses up a key blank to copy one of
their keys. Holding a key lets a player lock and unlock every door it belongs to.
OnKeyCopy lets plugins change the copy of a key before the player receives it.
Summary
Hooks
Lets players lock and unlock doors that one of their keys belongs to.
RegisterDoorProperties()shared
Registers the keys door property, which saves the door's keys and adds a menu to list, create and add keys.
Hooks
Implements hook PlayerCanLockDoor
Lets players lock and unlock doors that one of their keys belongs to.
Parameters
- actor Player player trying to lock the door
- entity Entity door
Returns
- Boolean true if the player has a key for the door, nil otherwise
Implements hook RegisterDoorProperties
Registers the keys door property, which saves the door's keys and adds a menu to list, create and add keys.