Hmmm, don't know how ZO_InventorySlot_DiscoverSlotActionsFromActionList populates the context menu but ShowPlayerContextMenu clears the menu when it is called. As such your prehook function is called first, you add the menu item, then it is cleared before the game populates it with the player context. You'll probably want to use zo_callLater with like a 20-50ms delay.
|