Skip to main content

InventoryTogglePermission

Callable


  • Toggles an item's permission for the player


    Parameters

    • Item: Item

      Appearance item to toggle

    • optionalType: string = null

      The relevant extended item option identifier of the item (if any)

    • optionalWorn: boolean = false

      True if the player is changing permissions for an item they're wearing or if it's the first option

    • push: boolean = true

      Whether to push the permission changes to the server

    Returns ItemPermissionMode

    • The new item permission