ExtendedItemCustomClickAndPush
Callable
Parameters
C: Character
The character
item: Item
The item
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
Whether the button r
Returns boolean
false
if the item's requirement check failed andtrue
otherwise
Helper click function for creating custom buttons, including extended item permission support, and pushing the changes to the server.