UnhookNative

Removes a previously registered Lua hook for a native identified by its hash. Frees the associated Lua reference.

Syntax

Susano.UnhookNative(hash) -> void

Parameters

hash (integer): 64-bit identifier of the native to unhook.

Return(s)

None

Behavior

If no hook exists for the provided hash, the function does nothing.

If a hook exists, it is removed from the susano hook system and the Lua reference is released.

Example(s)

Susano.UnhookNative(0x34CFC4C2A38E83E3)

Last updated