ExtendedItemCustomClick
Callable
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 wearingChangeWhenLocked: boolean = true
Returns boolean
false
if the item's requirement check failed andtrue
otherwise
Helper click function for creating custom buttons, including extended item permission support.