AddKey
lua
The request is sent to the server as the local player, so the normal checks apply:
- The local player must be allowed to manage keys (the owner, a key holder with the
manage_property_keyspermission, or an admin). - The target player must be online.
- It fails during a police lockdown that blocks key management.
The new key holder gets entry access. All extra permissions start turned off. If it fails, the player sees a notification with the reason.