Skip to main content

InventoryTogglePermission

Callable

  • InventoryTogglePermission(Item: Item, Type?: string, Worn?: boolean, push?: boolean): void

  • 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 void

    • Nothing