Skip to main content

ExtendedItemCustomClick

Callable

  • ExtendedItemCustomClick(Name: string, Callback: () => void, Worn?: boolean, ChangeWhenLocked?: boolean): boolean

  • Helper click function for creating custom buttons, including extended item permission support.


    Parameters

    • Name: string

      The name of the button and its pseudo-type

    • Callback: () => void

      A callback to be executed whenever the button is clicked and all requirements are met

      • Worn: boolean = false

        true if the player is changing permissions for an item they're wearing

      • ChangeWhenLocked: boolean = true

      Returns boolean

      false if the item's requirement check failed and true otherwise