How to unregister hook function?

  • #1, by atrusSaturday, 24. February 2018, 14:47 2 years ago
    Hi all,

    Does anyone know how to unregister  a hook function?

    In my case i want to unregister the following:

    registerHookFunction("getActionText", "FrenchActionText")

    Forum Fan

    237 Posts


  • #2, by afrlmeSaturday, 24. February 2018, 22:01 2 years ago
    you can only unregister mainLoop functions.

    Just replace the function to kill the action text function.

    function FrenchActionText()

    end
    1
    2
    3


    Or wrap whatever is inside of it in an if query. if condition/value is x.

    also quick note: the function doesn't have to be located in the same script containing the line that registers it.

    anyway, unregister for mainLoop functions would be like this...
    unregisterEventHandler("mainLoop", "example")
    1

    Imperator

    6778 Posts

Write post