Menu
Login
Language
DE EN FR ES IT CZ
Back

How to unregister hook function?

  • #1, by dionous Saturday, 24. February 2018, 14:47 8 years ago Quote
    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

    250 Posts

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

    Just replace the function to kill the action text function.

    function FrenchActionText()
    
    end


    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")

    Imperator

    7290 Posts