RemoveKey
luaexports.nolag_properties:RemoveKey(playerId, propertyId, keyHolder)
Parameters
- playerId:
number | false | 0The source of the request. Passfalseor0for server-side execution (bypasses player validation and permission checks). - propertyId:
numberThe property ID. - keyHolder:
stringThe identifier of the player whose key should be removed.
Return Value
booleanWhether the key was removed or not.
Behavior
- The calling player must have the
manage_property_keyspermission. - A player cannot remove their own key.
- Both the caller and the target (if online) receive a notification.
- No permission checks are performed.
- Only the target receives a notification (if they are online).