I'm having an issue with Prehooking the DestroyAllJunk() function. I'm fairly new to Prehooking but I followed a few examples and can't seem to get it to work. I want to grab some info about the items before they are all destroyed. Here is my code, right now it's just a message to chat to make sure it works and nothing happens. I have return set to true so that the original function doesn't run just for testing purposes but it runs anyway.
Code:
ZO_PreHook("DestroyAllJunk", function() d("test") return true end)
That line is in my Initialization function. Any help always appreciated!