DeadZone Community Packages
    Preparing search index...

    Function insertRightClickMenu

    • Inserts a right-click menu entry at the index position. Please note, you must insert the menu every frame for it appear consistently. We recommend subscribing to the MenuEntryAdded to accomplish this and adding inserting the entry after a specific one is added. We also recommend verifying you aren't adding duplicate entries by checking if () | Client.getMenuEntries() includes your menu item. You can listen to when this Menu Entry has been clicked within the MenuOptionClicked event. Custom entries are provided with the OpCode 666 for clear identification

      Parameters

      • entry: MenuEntry

        the Menu Entry to insert. The only params which matter are: Option, Target, ID, and ItemID if required

      • colorR: number

        the option in the right-click entry will be wrapped with the RGB color provided

      • colorG: number

        the option in the right-click entry will be wrapped with the RGB color provided

      • colorB: number

        the option in the right-click entry will be wrapped with the RGB color provided

      • index: number

        the index / position to insert this menu entry. The value -1 will appear as the left-click option. The value 0 will appear below the last entry added and so on..

      Returns void