RemoveKey

exports.nolag_properties:RemoveKey(playerId, propertyId, keyHolder)

Parameters

  • playerId: number | false | 0 The source of the request. Pass false or 0 for server-side execution (bypasses player validation and permission checks).

  • propertyId: number The property ID.

  • keyHolder: string The identifier of the player whose key should be removed.

Return Value

  • boolean Whether the key was removed or not.

Behavior

  • The calling player must have the manage_property_keys permission.

  • A player cannot remove their own key.

  • Both the caller and the target (if online) receive a notification.

Example

-- Player-initiated call
local success = exports.nolag_properties:RemoveKey(source, 1, 'license:xxxx')

-- Server-side call (no player context)
local success = exports.nolag_properties:RemoveKey(false, 1, 'license:xxxx')